浏览代码

GLTFExporter: Fixed accessor reference.

Mr.doob 4 年之前
父节点
当前提交
9d8ed2778e
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      examples/js/exporters/GLTFExporter.js
  2. 1 1
      examples/jsm/exporters/GLTFExporter.js

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

@@ -899,7 +899,7 @@ THREE.GLTFExporter = ( function () {
 
 			};
 
-			if ( attribute.normalized === true ) gltfAccessor.normalized = true;
+			if ( attribute.normalized === true ) accessorDef.normalized = true;
 			if ( ! json.accessors ) json.accessors = [];
 
 			return json.accessors.push( accessorDef ) - 1;

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

@@ -922,7 +922,7 @@ var GLTFExporter = ( function () {
 
 			};
 
-			if ( attribute.normalized === true ) gltfAccessor.normalized = true;
+			if ( attribute.normalized === true ) accessorDef.normalized = true;
 			if ( ! json.accessors ) json.accessors = [];
 
 			return json.accessors.push( accessorDef ) - 1;