diff --git a/jme3-core/src/main/java/com/jme3/scene/instancing/InstancedGeometry.java b/jme3-core/src/main/java/com/jme3/scene/instancing/InstancedGeometry.java index d9259ab99..7f0bb601b 100644 --- a/jme3-core/src/main/java/com/jme3/scene/instancing/InstancedGeometry.java +++ b/jme3-core/src/main/java/com/jme3/scene/instancing/InstancedGeometry.java @@ -68,6 +68,7 @@ public class InstancedGeometry extends Geometry { public InstancedGeometry() { super(); setIgnoreTransform(true); + setBatchHint(BatchHint.Never); setMaxNumInstances(1); } @@ -81,6 +82,7 @@ public class InstancedGeometry extends Geometry { public InstancedGeometry(String name) { super(name); setIgnoreTransform(true); + setBatchHint(BatchHint.Never); setMaxNumInstances(1); } @@ -326,6 +328,10 @@ public class InstancedGeometry extends Geometry { InstancedNode.setGeometryStartIndex2(geometry, freeIndex); } + public Geometry[] getGeometries() { + return geometries; + } + public VertexBuffer[] getAllInstanceData() { ArrayList allData = new ArrayList(); if (transformInstanceData != null) {