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