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:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user