- fix PhysicsSpace.removeAll() recursion bug (same fix as for addAll)

Fixes Issue 349

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7456 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
nor..67 2011-05-06 18:02:19 +00:00
parent 6b537307fd
commit 217eacde1e
2 changed files with 2 additions and 6 deletions

View File

@ -537,9 +537,7 @@ public class PhysicsSpace {
List<Spatial> children = ((Node) spatial).getChildren();
for (Iterator<Spatial> it = children.iterator(); it.hasNext();) {
Spatial spat = it.next();
if (spat instanceof Node) {
removeAll((Node) spat);
}
removeAll((Node) spat);
}
}
}

View File

@ -527,9 +527,7 @@ public class PhysicsSpace {
List<Spatial> children = ((Node) spatial).getChildren();
for (Iterator<Spatial> it = children.iterator(); it.hasNext();) {
Spatial spat = it.next();
if (spat instanceof Node) {
removeAll((Node) spat);
}
removeAll((Node) spat);
}
}
}