Browse Source

fix: map property binding regression introduced in #24537 (#24603)

hybridherbst 2 years ago
parent
commit
25a77e7661
1 changed files with 7 additions and 0 deletions
  1. 7 0
      src/animation/PropertyBinding.js

+ 7 - 0
src/animation/PropertyBinding.js

@@ -498,6 +498,13 @@ class PropertyBinding {
 
 				case 'map':
 
+					if ( 'map' in targetObject ) {
+
+						targetObject = targetObject.map;
+						break;
+
+					}
+
 					if ( ! targetObject.material ) {
 
 						console.error( 'THREE.PropertyBinding: Can not bind to material as node does not have a material.', this );