Browse Source

Fix geometry.mergeMesh determine mesh bug

06wj 8 years ago
parent
commit
e0f84b07ac
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/Geometry.js

+ 1 - 1
src/core/Geometry.js

@@ -820,7 +820,7 @@ Object.assign( Geometry.prototype, EventDispatcher.prototype, {
 
 
 	mergeMesh: function ( mesh ) {
 	mergeMesh: function ( mesh ) {
 
 
-		if ( ( mesh && mesh.isMesh ) === false ) {
+		if ( !mesh || !mesh.isMesh ) {
 
 
 			console.error( 'THREE.Geometry.mergeMesh(): mesh not an instance of THREE.Mesh.', mesh );
 			console.error( 'THREE.Geometry.mergeMesh(): mesh not an instance of THREE.Mesh.', mesh );
 			return;
 			return;