diff options
author | Harvey Harrison <[email protected]> | 2012-01-15 16:45:32 -0800 |
---|---|---|
committer | Harvey Harrison <[email protected]> | 2012-01-15 16:45:32 -0800 |
commit | dd8b091b2f0a809985cb2dd8c144521c32567f88 (patch) | |
tree | c6c7abff425d97fa4ec8da2f8ecaf2c7033ebb76 /src | |
parent | 3332d9f88ef4c7aca90cd614028b8c2807643c33 (diff) |
j3dcore: add missing call to updateBoundsState in BoundingSphere::setCenter
Signed-off-by: Harvey Harrison <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/classes/share/javax/media/j3d/BoundingSphere.java | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/classes/share/javax/media/j3d/BoundingSphere.java b/src/classes/share/javax/media/j3d/BoundingSphere.java index f37bc6d..db14526 100644 --- a/src/classes/share/javax/media/j3d/BoundingSphere.java +++ b/src/classes/share/javax/media/j3d/BoundingSphere.java @@ -291,16 +291,14 @@ double radius; center.z = this.center.z; } - /** - * Sets the position of this bounding sphere from a point. - * @param center a Point defining the new center of the bounding sphere - */ - public void setCenter(Point3d center) { - this.center.x = center.x; - this.center.y = center.y; - this.center.z = center.z; - checkBoundsIsNaN(); - } +/** + * Sets the position of this bounding sphere from a point. + * @param center a Point defining the new center of the bounding sphere + */ +public void setCenter(Point3d center) { + this.center.set(center); + updateBoundsStates(); +} /** * Sets the value of this BoundingSphere. |