Explorar o código

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

hybridherbst %!s(int64=2) %!d(string=hai) anos
pai
achega
25a77e7661
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      src/animation/PropertyBinding.js

+ 7 - 0
src/animation/PropertyBinding.js

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