Skip to content

Commit

Permalink
support node.uniqueName in Animation binding (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
JichenZhang committed May 17, 2024
1 parent fd67fb1 commit 8d281c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/animation/PropertyBinding.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ class PropertyBinding {

static findNode( root, nodeName ) {

if ( ! nodeName || nodeName === '' || nodeName === '.' || nodeName === - 1 || nodeName === root.name || nodeName === root.uuid ) {
if ( ! nodeName || nodeName === '' || nodeName === '.' || nodeName === - 1 || nodeName === root.name || nodeName === root.uuid || nodeName === root.uniqueName ) {

return root;

Expand Down Expand Up @@ -223,7 +223,7 @@ class PropertyBinding {

const childNode = children[ i ];

if ( childNode.name === nodeName || childNode.uuid === nodeName ) {
if ( childNode.name === nodeName || childNode.uuid === nodeName || childNode.uniqueName === nodeName ) {

return childNode;

Expand Down

0 comments on commit 8d281c4

Please sign in to comment.