소스 검색

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

hybridherbst 2 년 전
부모
커밋
25a77e7661
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  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 );