Fix JDK6 compliance

syntax error in TestInstanceNode
experimental
shadowislord 10 years ago
parent e448e46675
commit b39772c401
  1. 4
      jme3-examples/src/main/java/jme3test/scene/instancing/TestInstanceNode.java

@ -166,8 +166,8 @@ public class TestInstanceNode extends SimpleApplication {
for (Spatial child : instancedNode.getChildren()) {
if (!(child instanceof InstancedGeometry)) {
float val = child.getUserData("height");
float dir = child.getUserData("dir");
float val = ((Float)child.getUserData("height")).floatValue();
float dir = ((Float)child.getUserData("dir")).floatValue();
val += (dir + ((FastMath.nextRandomFloat() * 0.5f) - 0.25f)) * tpf;

Loading…
Cancel
Save