Bläddra i källkod

Fix computeBoundingSphere for relative morph targets

Arseny Kapoulkine 6 år sedan
förälder
incheckning
aa660bc6c7
1 ändrade filer med 2 tillägg och 2 borttagningar
  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 {