Fix crash in TestInstanceNode (do you guys even test??)

experimental
shadowislord 11 years ago
parent 57d4dbb1b1
commit 4599c4cc9d
  1. 8
      jme3-examples/src/main/java/jme3test/scene/instancing/TestInstanceNode.java

@ -55,7 +55,7 @@ public class TestInstanceNode extends SimpleApplication {
private final Material[] materials = new Material[6];
private Node instancedNode;
private float time = 0;
private boolean INSTANCING = false;
private boolean INSTANCING = true;
public static void main(String[] args){
TestInstanceNode app = new TestInstanceNode();
@ -126,9 +126,9 @@ public class TestInstanceNode extends SimpleApplication {
((InstancedNode)instancedNode).instance();
}
instancedNode = (InstancedNode) instancedNode.clone();
instancedNode.move(0, 5, 0);
rootNode.attachChild(instancedNode);
//instancedNode = (InstancedNode) instancedNode.clone();
//instancedNode.move(0, 5, 0);
//rootNode.attachChild(instancedNode);
cam.setLocation(new Vector3f(38.373516f, 6.689055f, 38.482082f));
cam.setRotation(new Quaternion(-0.04004206f, 0.918326f, -0.096310444f, -0.38183528f));

Loading…
Cancel
Save