Преглед изворни кода

Fix computeBoundingSphere for relative morph targets

Arseny Kapoulkine пре 5 година
родитељ
комит
aa660bc6c7
1 измењених фајлова са 2 додато и 2 уклоњено
  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 ) {
 
-						_box.boundingBox.expandByVector( _boxMorphTargets.min );
-						_box.boundingBox.expandByVector( _boxMorphTargets.max );
+						_box.expandByVector( _boxMorphTargets.min );
+						_box.expandByVector( _boxMorphTargets.max );
 
 					} else {