aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/classes/share/javax/media/j3d/BoundingSphere.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/classes/share/javax/media/j3d/BoundingSphere.java b/src/classes/share/javax/media/j3d/BoundingSphere.java
index e2f28f0..cc1a167 100644
--- a/src/classes/share/javax/media/j3d/BoundingSphere.java
+++ b/src/classes/share/javax/media/j3d/BoundingSphere.java
@@ -177,11 +177,9 @@ public BoundingSphere(Bounds[] boundsObjects) {
i++;
}
- if( i >= boundsObjects.length ) { // all bounds objects were empty
- // Negative volume.
- radius = -1.0;
- updateBoundsStates();
- return;
+ if (i >= boundsObjects.length) { // all bounds objects were empty
+ setEmptyBounds();
+ return;
}
this.set(boundsObjects[i++]);