git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7212 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
@@ -259,6 +259,12 @@ public class GeometryBatchFactory {
node.attachChild(geom);
}
+ Node parent = scene.getParent();
+ if(parent != null){
+ scene.removeFromParent();
+ parent.attachChild(node);
+ }
+
return node;