Fix the position of the head anchors of tracks.

This commit is contained in:
2023-04-19 13:33:41 +08:00
parent 0f683e403c
commit a5439430fb

View File

@@ -157,6 +157,9 @@ namespace Cryville.Crtr.Event {
if (s.CloneType == 3) SetPreGraphicalActive(true, s);
else if (ev is StampedEvent.Anchor) {
var tev = (StampedEvent.Anchor)ev;
if (tev.Target == a_head) {
SetGraphicalActive(true, s);
}
if (RootTransform) {
OpenAnchor(tev.Target);
#if UNITY_5_6_OR_NEWER
@@ -168,10 +171,7 @@ namespace Cryville.Crtr.Event {
MatchDynamic(s, 2);
CloseAnchor();
}
if (tev.Target == a_head) {
SetGraphicalActive(true, s);
}
else if (tev.Target == a_tail) {
if (tev.Target == a_tail) {
SetGraphicalActive(false, s);
}
anchorEvPool.Return(tev);