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