Procházet zdrojové kódy

Fix geometry.mergeMesh determine mesh bug

06wj před 8 roky
rodič
revize
e0f84b07ac
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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 ) {
 
-		if ( ( mesh && mesh.isMesh ) === false ) {
+		if ( !mesh || !mesh.isMesh ) {
 
 			console.error( 'THREE.Geometry.mergeMesh(): mesh not an instance of THREE.Mesh.', mesh );
 			return;