Ben Houston il y a 10 ans
Parent
commit
e5857aa857
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/animation/PropertyBinding.js

+ 2 - 2
src/animation/PropertyBinding.js

@@ -120,10 +120,10 @@ THREE.PropertyBinding.prototype = {
 					
 					// support resolving morphTarget names into indices.
 					//console.log( "  resolving morphTargetInfluence name: ", this.propertyIndex );
-					if( this.node.geometry ) {
+					if( ! this.node.geometry ) {
 						console.error( '  can not bind to morphTargetInfluences becasuse node does not have a geometry', this );				
 					}
-					if( this.node.geometry.morphTargets ) {
+					if( ! this.node.geometry.morphTargets ) {
 						console.error( '  can not bind to morphTargetInfluences becasuse node does not have a geometry.morphTargets', this );				
 					}