Change anchor opening to single only.

This commit is contained in:
2023-01-16 13:33:25 +08:00
parent 609bb317d0
commit a09a5686d7
2 changed files with 10 additions and 9 deletions

View File

@@ -89,7 +89,7 @@ namespace Cryville.Crtr {
else return Enumerable.Empty<Transform>();
}
public override bool IsUpdatable(ContainerState h) {
return h.Handler.OpenAnchors.ContainsKey(Name);
return h.Handler.OpenedAnchor.Name == Name;
}
}
public class AtAnchor : SkinSelector {
@@ -101,7 +101,7 @@ namespace Cryville.Crtr {
return IsUpdatable(h) ? a : null;
}
public override bool IsUpdatable(ContainerState h) {
return h.Handler.OpenAnchors.ContainsKey(Name);
return h.Handler.OpenedAnchor.Name == Name;
}
}
public class Property : SkinSelector {