diff options
author | Harvey Harrison <[email protected]> | 2012-01-15 16:59:28 -0800 |
---|---|---|
committer | Harvey Harrison <[email protected]> | 2012-01-15 16:59:28 -0800 |
commit | 287cb1834c84cd8863945663fa9d6863f03cae94 (patch) | |
tree | c31570b66dbf94b33cc7027bc17e975ed21e6309 /src/classes/share | |
parent | bef20e27682d3468b9943286a7ce6fa681981757 (diff) |
j3dcore: one more use of the emptyBounds helper in BoundingSphere
Signed-off-by: Harvey Harrison <[email protected]>
Diffstat (limited to 'src/classes/share')
-rw-r--r-- | src/classes/share/javax/media/j3d/BoundingSphere.java | 8 |
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++]); |