Skip to content

Commit

Permalink
fix: map property binding regression introduced in #24537
Browse files Browse the repository at this point in the history
  • Loading branch information
hybridherbst committed Sep 7, 2022
1 parent d1c04ec commit b9a0b83
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/animation/PropertyBinding.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit b9a0b83

Please sign in to comment.