diff options
author | Harvey Harrison <[email protected]> | 2012-01-15 17:06:09 -0800 |
---|---|---|
committer | Harvey Harrison <[email protected]> | 2012-01-15 17:06:09 -0800 |
commit | 23f043f2f9fbd17a76b363f9a45b472cac382966 (patch) | |
tree | 552a1a3c421ba2b9e074ede0f3d0f36c312f47f8 /src/classes/share | |
parent | 287cb1834c84cd8863945663fa9d6863f03cae94 (diff) |
j3dcore: match behavior of constructor and set() method in BoundingSphere
Make the BoundingSphere(Bounds) match the set(Bounds) behavior when passing an empty
Bounds into it.
Signed-off-by: Harvey Harrison <[email protected]>
Diffstat (limited to 'src/classes/share')
-rw-r--r-- | src/classes/share/javax/media/j3d/BoundingSphere.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/classes/share/javax/media/j3d/BoundingSphere.java b/src/classes/share/javax/media/j3d/BoundingSphere.java index cc1a167..2bf17a6 100644 --- a/src/classes/share/javax/media/j3d/BoundingSphere.java +++ b/src/classes/share/javax/media/j3d/BoundingSphere.java @@ -88,7 +88,7 @@ public BoundingSphere(Bounds boundsObject) { boundId = BOUNDING_SPHERE; center = new Point3d(); - if (boundsObject == null) { + if (boundsObject == null || boundsObject.boundsIsEmpty) { setEmptyBounds(); return; } |