Procházet zdrojové kódy

GLTFExporter: processNode returns null instead of false

Fernando Serrano před 8 roky
rodič
revize
f0904c1276
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3 3
      examples/js/exporters/GLTFExporter.js

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

@@ -765,7 +765,7 @@ THREE.GLTFExporter.prototype = {
 			if ( object instanceof THREE.Light ) {
 
 				console.warn( 'GLTFExporter: Unsupported node type:', object.constructor.name );
-				return false;
+				return null;
 
 			}
 
@@ -856,7 +856,7 @@ THREE.GLTFExporter.prototype = {
 
 						var node = processNode( child );
 
-						if ( node !== false ) {
+						if ( node !== null ) {
 
 							children.push( node );
 
@@ -918,7 +918,7 @@ THREE.GLTFExporter.prototype = {
 
 					var node = processNode( child );
 
-					if ( node !== false ) {
+					if ( node !== null ) {
 
 						nodes.push( node );