瀏覽代碼

Geometry: Clarified .mergeMesh()

Mugen87 8 年之前
父節點
當前提交
75efcdb75e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/core/Geometry.js

+ 1 - 1
src/core/Geometry.js

@@ -809,7 +809,7 @@ Geometry.prototype = Object.assign( Object.create( EventDispatcher.prototype ),
 
 		}
 
-		mesh.matrixAutoUpdate && mesh.updateMatrix();
+		if ( mesh.matrixAutoUpdate ) mesh.updateMatrix();
 
 		this.merge( mesh.geometry, mesh.matrix );
 

粤ICP备19079148号