Fix JDK6 compliance
syntax error in TestInstanceNode
This commit is contained in:
		
							parent
							
								
									e448e46675
								
							
						
					
					
						commit
						b39772c401
					
				| @ -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; | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user