Explorar el Código

Accept node.skin=0 in GLTF2Loader

Takahiro hace 8 años
padre
commit
c04eb0d7f3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      examples/js/loaders/GLTF2Loader.js

+ 1 - 1
examples/js/loaders/GLTF2Loader.js

@@ -1999,7 +1999,7 @@ THREE.GLTF2Loader = ( function () {
 
 								var skinEntry;
 
-								if ( node.skin ) {
+								if ( node.skin !== undefined ) {
 
 									skinEntry = dependencies.skins[ node.skin ];