OK, in this case the problem existed mostly between my keyboard and my

chair.  I better get that fixed.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@46 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Andrzej Kapolka
2006-10-09 21:43:49 +00:00
parent 37e93d30c7
commit c6f1691bb7
+8 -13
View File
@@ -829,22 +829,17 @@ public class Model extends ModelNode
*/
protected void storeWorldBound ()
{
Quaternion orot = new Quaternion(getLocalRotation());
Vector3f otrans = new Vector3f(getLocalTranslation()),
oscale = new Vector3f(getLocalScale());
getLocalRotation().set(Quaternion.IDENTITY);
getLocalTranslation().set(Vector3f.ZERO);
getLocalScale().set(Vector3f.UNIT_XYZ);
updateWorldData(0f);
// update the bounds with an identity transform (which will be
// overwritten after this method is called)
getWorldRotation().set(Quaternion.IDENTITY);
getWorldTranslation().set(Vector3f.ZERO);
getWorldScale().set(Vector3f.UNIT_XYZ);
for (int ii = 0, nn = getQuantity(); ii < nn; ii++) {
getChild(ii).updateGeometricState(0f, false);
}
updateWorldBound();
_storedBound = worldBound.clone(_storedBound);
getLocalRotation().set(orot);
getLocalTranslation().set(otrans);
getLocalScale().set(oscale);
}
/**