Hide nodes not included as targets in an animation. I haven't tested

all the units with this; there's a chance some of the animations will 
have to be re-exported if they mistakenly omit nodes.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@24 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Andrzej Kapolka
2006-08-03 18:21:28 +00:00
parent 844e2564fd
commit 7f92496425
3 changed files with 60 additions and 1 deletions
@@ -508,6 +508,14 @@ public class Model extends ModelNode
if (_anim != null) {
_animObservers.apply(new AnimCancelledOp(_animName));
}
// first cull all model nodes, then re-activate the ones in the
// target list
cullModelNodes();
for (Spatial target : anim.transformTargets) {
((ModelNode)target).updateCullMode();
}
_paused = false;
_anim = anim;
_animName = name;