From 287cb1834c84cd8863945663fa9d6863f03cae94 Mon Sep 17 00:00:00 2001 From: Harvey Harrison Date: Sun, 15 Jan 2012 16:59:28 -0800 Subject: j3dcore: one more use of the emptyBounds helper in BoundingSphere Signed-off-by: Harvey Harrison --- src/classes/share/javax/media/j3d/BoundingSphere.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/classes/share') 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++]); -- cgit v1.2.3