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 ()
|
protected void storeWorldBound ()
|
||||||
{
|
{
|
||||||
Quaternion orot = new Quaternion(getLocalRotation());
|
// update the bounds with an identity transform (which will be
|
||||||
Vector3f otrans = new Vector3f(getLocalTranslation()),
|
// overwritten after this method is called)
|
||||||
oscale = new Vector3f(getLocalScale());
|
getWorldRotation().set(Quaternion.IDENTITY);
|
||||||
|
getWorldTranslation().set(Vector3f.ZERO);
|
||||||
getLocalRotation().set(Quaternion.IDENTITY);
|
getWorldScale().set(Vector3f.UNIT_XYZ);
|
||||||
getLocalTranslation().set(Vector3f.ZERO);
|
for (int ii = 0, nn = getQuantity(); ii < nn; ii++) {
|
||||||
getLocalScale().set(Vector3f.UNIT_XYZ);
|
getChild(ii).updateGeometricState(0f, false);
|
||||||
|
}
|
||||||
updateWorldData(0f);
|
|
||||||
updateWorldBound();
|
updateWorldBound();
|
||||||
|
|
||||||
_storedBound = worldBound.clone(_storedBound);
|
_storedBound = worldBound.clone(_storedBound);
|
||||||
|
|
||||||
getLocalRotation().set(orot);
|
|
||||||
getLocalTranslation().set(otrans);
|
|
||||||
getLocalScale().set(oscale);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user