Fix JDK6 compliance

syntax error in TestInstanceNode
This commit is contained in:
shadowislord 2014-09-24 12:27:49 -04:00
parent e448e46675
commit b39772c401

View File

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