|
@@ -21,6 +21,8 @@ class BigPrimitive extends Primitive {
|
|
|
var allocPos : h3d.impl.AllocPos;
|
|
|
#end
|
|
|
|
|
|
+ public var isStatic = true;
|
|
|
+
|
|
|
static var PREV_BUFFER : hxd.FloatBuffer;
|
|
|
static var PREV_INDEX : hxd.IndexBuffer;
|
|
|
|
|
@@ -52,7 +54,7 @@ class BigPrimitive extends Primitive {
|
|
|
tmpBuf = new hxd.FloatBuffer();
|
|
|
else
|
|
|
PREV_BUFFER = null;
|
|
|
- tmpBuf.grow(65535 * stride);
|
|
|
+ if( isStatic ) tmpBuf.grow(65535 * stride);
|
|
|
}
|
|
|
if( tmpIdx == null ) {
|
|
|
tmpIdx = PREV_INDEX;
|