aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/classes/share/javax/media/j3d/GeometryArrayRetained.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/classes/share/javax/media/j3d/GeometryArrayRetained.java b/src/classes/share/javax/media/j3d/GeometryArrayRetained.java
index 68bd9a6..5d319b5 100644
--- a/src/classes/share/javax/media/j3d/GeometryArrayRetained.java
+++ b/src/classes/share/javax/media/j3d/GeometryArrayRetained.java
@@ -8334,7 +8334,7 @@ ArrayList<ArrayList<MorphRetained>> morphUserLists = null;
Point3d origin = new Point3d();
Point3d end = new Point3d();
Vector3d direction = new Vector3d();
- Point3d iPnt = new Point3d();
+ Point3d iPnt = new Point3d();
Vector3d originToIpnt = new Vector3d();
// Get cone information
@@ -8344,10 +8344,6 @@ ArrayList<ArrayList<MorphRetained>> morphUserLists = null;
double distance;
double sqDist;
- if (iPnt == null) {
- iPnt = new Point3d();
- }
-
if (cone instanceof PickConeSegment) {
((PickConeSegment)cone).getEnd (end);
sqDist = Distance.pointToSegment (pt, origin, end, iPnt, null);