Explorar o código

Merge pull request #16237 from takahirox/FixComputeBoundingSphere

Fix BufferGeometry computeBoundingSphere() with morph
Mr.doob %!s(int64=7) %!d(string=hai) anos
pai
achega
6870a2dc5c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/core/BufferGeometry.js

+ 1 - 1
src/core/BufferGeometry.js

@@ -716,7 +716,7 @@ BufferGeometry.prototype = Object.assign( Object.create( EventDispatcher.prototy
 
 						for ( var j = 0, jl = morphAttribute.count; j < jl; j ++ ) {
 
-							vector.fromBufferAttribute( morphAttribute, i );
+							vector.fromBufferAttribute( morphAttribute, j );
 
 							maxRadiusSq = Math.max( maxRadiusSq, center.distanceToSquared( vector ) );
 

粤ICP备19079148号