aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/share/javax/media
diff options
context:
space:
mode:
Diffstat (limited to 'src/classes/share/javax/media')
-rw-r--r--src/classes/share/javax/media/j3d/PickInfo.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/classes/share/javax/media/j3d/PickInfo.java b/src/classes/share/javax/media/j3d/PickInfo.java
index 64a6392..78c8ab3 100644
--- a/src/classes/share/javax/media/j3d/PickInfo.java
+++ b/src/classes/share/javax/media/j3d/PickInfo.java
@@ -696,11 +696,10 @@ public class PickInfo extends Object {
((flags & CLOSEST_GEOM_INFO) != 0) ||
((flags & CLOSEST_INTERSECTION_POINT) != 0) ||
((flags & ALL_GEOM_INFO) != 0)) {
-
- pickInfo.setNodeRef((Node) s3dCR.srcList[n]);
- Transform3D l2vw = geomAtoms[i].source.getCurrentLocalToVworld();
if(pickInfo == null)
pickInfo = new PickInfo();
+ pickInfo.setNodeRef((Node) s3dCR.srcList[n]);
+ Transform3D l2vw = geomAtoms[i].source.getCurrentLocalToVworld();
pickInfo.setLocalToVWorldRef(l2vw);
}
@@ -751,11 +750,10 @@ public class PickInfo extends Object {
((flags & CLOSEST_GEOM_INFO) != 0) ||
((flags & CLOSEST_INTERSECTION_POINT) != 0) ||
((flags & ALL_GEOM_INFO) != 0)) {
-
- pickInfo.setNodeRef((Node) srcNode.source);
- Transform3D l2vw = geomAtoms[i].source.getCurrentLocalToVworld();
if(pickInfo == null)
pickInfo = new PickInfo();
+ pickInfo.setNodeRef((Node) srcNode.source);
+ Transform3D l2vw = geomAtoms[i].source.getCurrentLocalToVworld();
pickInfo.setLocalToVWorldRef(l2vw);
}