Parcourir la source

Accept node.skin=0 in GLTF2Loader

Takahiro il y a 8 ans
Parent
commit
c04eb0d7f3
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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 ];