|
@@ -32720,8 +32720,7 @@ class BatchedMesh extends Mesh {
|
|
|
const { array, itemSize, normalized } = srcAttribute;
|
|
|
|
|
|
const dstArray = new array.constructor( maxVertexCount * itemSize );
|
|
|
- const dstAttribute = new srcAttribute.constructor( dstArray, itemSize, normalized );
|
|
|
- dstAttribute.setUsage( srcAttribute.usage );
|
|
|
+ const dstAttribute = new BufferAttribute( dstArray, itemSize, normalized );
|
|
|
|
|
|
geometry.setAttribute( attributeName, dstAttribute );
|
|
|
|
|
@@ -33039,6 +33038,7 @@ class BatchedMesh extends Mesh {
|
|
|
}
|
|
|
|
|
|
dstAttribute.needsUpdate = true;
|
|
|
+ dstAttribute.addUpdateRange( vertexStart * itemSize, vertexCount * itemSize );
|
|
|
|
|
|
}
|
|
|
|
|
@@ -33062,6 +33062,7 @@ class BatchedMesh extends Mesh {
|
|
|
}
|
|
|
|
|
|
dstIndex.needsUpdate = true;
|
|
|
+ dstIndex.addUpdateRange( indexStart, reservedRange.indexCount );
|
|
|
|
|
|
}
|
|
|
|