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