* Make sure InstancedGeometry is non-batchable spatial
This commit is contained in:
parent
4ae99f9d5d
commit
6ddc68278b
@ -68,6 +68,7 @@ public class InstancedGeometry extends Geometry {
|
|||||||
public InstancedGeometry() {
|
public InstancedGeometry() {
|
||||||
super();
|
super();
|
||||||
setIgnoreTransform(true);
|
setIgnoreTransform(true);
|
||||||
|
setBatchHint(BatchHint.Never);
|
||||||
setMaxNumInstances(1);
|
setMaxNumInstances(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -81,6 +82,7 @@ public class InstancedGeometry extends Geometry {
|
|||||||
public InstancedGeometry(String name) {
|
public InstancedGeometry(String name) {
|
||||||
super(name);
|
super(name);
|
||||||
setIgnoreTransform(true);
|
setIgnoreTransform(true);
|
||||||
|
setBatchHint(BatchHint.Never);
|
||||||
setMaxNumInstances(1);
|
setMaxNumInstances(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -326,6 +328,10 @@ public class InstancedGeometry extends Geometry {
|
|||||||
InstancedNode.setGeometryStartIndex2(geometry, freeIndex);
|
InstancedNode.setGeometryStartIndex2(geometry, freeIndex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Geometry[] getGeometries() {
|
||||||
|
return geometries;
|
||||||
|
}
|
||||||
|
|
||||||
public VertexBuffer[] getAllInstanceData() {
|
public VertexBuffer[] getAllInstanceData() {
|
||||||
ArrayList<VertexBuffer> allData = new ArrayList();
|
ArrayList<VertexBuffer> allData = new ArrayList();
|
||||||
if (transformInstanceData != null) {
|
if (transformInstanceData != null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user