Fix for PhysicsSpace ClassCastException

Hey.

Here’s a patch for a crash that occurs in PhysicsSpace on line 530 if a Geometry is cast to Node. Seems like a left over from refactoring.



[patch]

Index: PhysicsSpace.java

===================================================================

— PhysicsSpace.java (revision 7506)

+++ PhysicsSpace.java (working copy)

@@ -527,7 +527,7 @@

List<Spatial> children = ((Node) spatial).getChildren();

for (Iterator<Spatial> it = children.iterator(); it.hasNext():wink: {

Spatial spat = it.next();

  •            removeAll((Node) spat);<br />
    
  •            removeAll(spat);<br />
    

}

}

}

[/patch]