浏览代码

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 );