浏览代码

Merge pull request #16397 from geogiam-net/dev

fixed GLTFExporter process when mesh is set matrixAutoUpdate to false
Mr.doob 6 年之前
父节点
当前提交
86b40572fe
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      examples/js/exporters/GLTFExporter.js

+ 4 - 1
examples/js/exporters/GLTFExporter.js

@@ -1740,7 +1740,10 @@ THREE.GLTFExporter.prototype = {
 
 			} else {
 
-				object.updateMatrix();
+				if (object.matrixAutoUpdate) {
+						object.updateMatrix();
+				}
+
 				if ( ! equalArray( object.matrix.elements, [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ] ) ) {
 
 					gltfNode.matrix = object.matrix.elements;