From 0dc6586e6a7f141d6f1888782eb0083f9224144a Mon Sep 17 00:00:00 2001 From: Andrzej Kapolka Date: Sat, 14 Oct 2006 00:49:23 +0000 Subject: [PATCH] For models with locked transforms (i.e., props), don't bother trying to keep the world bound up-to-date; it won't change, and updateWorldVectors has no effect. git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@56 ed5b42cb-e716-0410-a449-f6a68f950b19 --- src/java/com/threerings/jme/model/Model.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/java/com/threerings/jme/model/Model.java b/src/java/com/threerings/jme/model/Model.java index 300bcfdb..dff8edec 100644 --- a/src/java/com/threerings/jme/model/Model.java +++ b/src/java/com/threerings/jme/model/Model.java @@ -843,6 +843,9 @@ public class Model extends ModelNode // update controllers and children with accumulated time _accum += time; if (_outside) { + if ((lockedMode & LOCKED_TRANSFORMS) != 0) { + return; // world bound will not changed + } if (!wasOutside) { storeWorldBound(); }