Browse Source

minor error.

Ben Houston 10 years ago
parent
commit
e5857aa857
1 changed files with 2 additions and 2 deletions
  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 );				
 					}