From dd8b091b2f0a809985cb2dd8c144521c32567f88 Mon Sep 17 00:00:00 2001 From: Harvey Harrison Date: Sun, 15 Jan 2012 16:45:32 -0800 Subject: j3dcore: add missing call to updateBoundsState in BoundingSphere::setCenter Signed-off-by: Harvey Harrison --- src/classes/share/javax/media/j3d/BoundingSphere.java | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'src') 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. -- cgit v1.2.3