Преглед на файлове

GLTFExporter: Clean up.

linbingquan преди 4 години
родител
ревизия
2da766e818
променени са 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

@@ -1791,7 +1791,7 @@ THREE.GLTFExporter.prototype = {
 
 				}
 
-				if ( ! isIdentityMatrix( object.matrix ) ) {
+				if ( isIdentityMatrix( object.matrix ) === false ) {
 
 					gltfNode.matrix = object.matrix.elements;
 

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

@@ -1811,7 +1811,7 @@ GLTFExporter.prototype = {
 
 				}
 
-				if ( ! isIdentityMatrix( object.matrix ) ) {
+				if ( isIdentityMatrix( object.matrix ) === false ) {
 
 					gltfNode.matrix = object.matrix.elements;