|
|
@ -773,10 +773,6 @@ public class BatchNode extends GeometryGroupNode implements Savable { |
|
|
|
this.needsFullRebatch = needsFullRebatch; |
|
|
|
this.needsFullRebatch = needsFullRebatch; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public int getOffsetIndex(Geometry batchedGeometry) { |
|
|
|
|
|
|
|
return batchedGeometry.startIndex; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public Node clone(boolean cloneMaterials) { |
|
|
|
public Node clone(boolean cloneMaterials) { |
|
|
|
BatchNode clone = (BatchNode)super.clone(cloneMaterials); |
|
|
|
BatchNode clone = (BatchNode)super.clone(cloneMaterials); |
|
|
@ -790,8 +786,8 @@ public class BatchNode extends GeometryGroupNode implements Savable { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
clone.needsFullRebatch = true; |
|
|
|
clone.needsFullRebatch = true; |
|
|
|
clone.batches.clear(); |
|
|
|
clone.batches = new SafeArrayList<Batch>(Batch.class); |
|
|
|
clone.batchesByGeom.clear(); |
|
|
|
clone.batchesByGeom = new HashMap<Geometry, Batch>(); |
|
|
|
clone.batch(); |
|
|
|
clone.batch(); |
|
|
|
} |
|
|
|
} |
|
|
|
return clone; |
|
|
|
return clone; |
|
|
|