* Make sure InstancedGeometry is non-batchable spatial

experimental
shadowislord 11 years ago
parent 4ae99f9d5d
commit 6ddc68278b
  1. 6
      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<VertexBuffer> allData = new ArrayList();
if (transformInstanceData != null) {

Loading…
Cancel
Save