Browse Source

GLTFExporter: processNode returns null instead of false

Fernando Serrano 8 years ago
parent
commit
f0904c1276
1 changed files with 3 additions and 3 deletions
  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 );