Jelajahi Sumber

Fix computeBoundingSphere for relative morph targets

Arseny Kapoulkine 5 tahun lalu
induk
melakukan
aa660bc6c7
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      src/core/BufferGeometry.js

+ 2 - 2
src/core/BufferGeometry.js

@@ -657,8 +657,8 @@ BufferGeometry.prototype = Object.assign( Object.create( EventDispatcher.prototy
 
 
 					if ( this.morphTargetsRelative ) {
 					if ( this.morphTargetsRelative ) {
 
 
-						_box.boundingBox.expandByVector( _boxMorphTargets.min );
-						_box.boundingBox.expandByVector( _boxMorphTargets.max );
+						_box.expandByVector( _boxMorphTargets.min );
+						_box.expandByVector( _boxMorphTargets.max );
 
 
 					} else {
 					} else {