fix issue #240 (TestBlenderObjectAnim fails with NPE)

This commit is contained in:
Stephen Gold 2018-12-15 23:12:11 -08:00
parent 53d7052301
commit cf7725a56e

View File

@ -69,13 +69,13 @@ public class TestBlenderObjectAnim extends SimpleApplication {
Spatial scene = (Spatial) assetManager.loadModel(blenderKey); Spatial scene = (Spatial) assetManager.loadModel(blenderKey);
rootNode.attachChild(scene); rootNode.attachChild(scene);
Spatial model = this.findNode(rootNode, "TestAnim"); Spatial model = this.findNode(rootNode, "Cube");
model.center(); model.center();
control = model.getControl(AnimControl.class); control = model.getControl(AnimControl.class);
channel = control.createChannel(); channel = control.createChannel();
channel.setAnim("TestAnim"); channel.setAnim("Action");
} }
/** /**