|
@@ -54,8 +54,7 @@ class SkinnedMesh extends Mesh {
|
|
|
|
|
|
for ( let i = 0; i < positionAttribute.count; i ++ ) {
|
|
|
|
|
|
- _vertex.fromBufferAttribute( positionAttribute, i );
|
|
|
- this.applyBoneTransform( i, _vertex );
|
|
|
+ this.getVertexPosition( i, _vertex );
|
|
|
this.boundingBox.expandByPoint( _vertex );
|
|
|
|
|
|
}
|
|
@@ -78,8 +77,7 @@ class SkinnedMesh extends Mesh {
|
|
|
|
|
|
for ( let i = 0; i < positionAttribute.count; i ++ ) {
|
|
|
|
|
|
- _vertex.fromBufferAttribute( positionAttribute, i );
|
|
|
- this.applyBoneTransform( i, _vertex );
|
|
|
+ this.getVertexPosition( i, _vertex );
|
|
|
this.boundingSphere.expandByPoint( _vertex );
|
|
|
|
|
|
}
|