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
@@ -49,6 +49,11 @@ public abstract class EmissionController extends ModelController
super.init(model);
if (_hideTarget) {
_target.setCullMode(Spatial.CULL_ALWAYS);
if (_target instanceof ModelNode) {
// make sure the node isn't turned back on by an
// animation
((ModelNode)_target).setForceCull(true);
}
}
}