fix issue #240 (TestBlenderObjectAnim fails with NPE)
This commit is contained in:
parent
53d7052301
commit
cf7725a56e
@ -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");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user