Skip to content

Commit 6405c85

Browse files
committed
1.0.0-beta.14
1 parent 56ed255 commit 6405c85

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Runtime/UnityExtensions.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public static string GetAnimatablePath(this Transform transform, Transform root)
1515
return string.Empty;
1616

1717
string path = string.Empty;
18-
while (transform != transform.root)
18+
while (transform != transform.root && transform != root)
1919
{
2020
path = $"{transform.name}/{path}";
2121
transform = transform.parent;
@@ -42,11 +42,12 @@ public static string GetAnimatablePath(this Transform transform, Transform root)
4242
continue;
4343

4444
target = child;
45+
break;
4546
}
4647
}
4748

48-
return path != target.GetAnimatablePath(root) ? null
49-
: (type == typeof(GameObject) ? target.gameObject : target.GetComponent(type));
49+
var animPath = target.GetAnimatablePath(root);
50+
return path != animPath ? null : type == typeof(GameObject) ? target.gameObject : target.GetComponent(type);
5051
}
5152
}
5253
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "nexus.auros.flare",
33
"displayName": "Flare",
4-
"version": "1.0.0-beta.13",
4+
"version": "1.0.0-beta.14",
55
"unity": "2022.3",
66
"description": "Non-Destructive Avatar Building Tools for VRChat",
77
"vrchatVersion": "2023.4.1",

0 commit comments

Comments
 (0)