- make GeometryBatchFactory.optimize() replace the optimized spatial
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7212 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
7c7afb677f
commit
345986fb70
@ -259,6 +259,12 @@ public class GeometryBatchFactory {
|
||||
node.attachChild(geom);
|
||||
}
|
||||
|
||||
Node parent = scene.getParent();
|
||||
if(parent != null){
|
||||
scene.removeFromParent();
|
||||
parent.attachChild(node);
|
||||
}
|
||||
|
||||
return node;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user