fix: shape changer delete preview not working

This commit is contained in:
nekobako 2024-10-03 18:38:30 +09:00
parent c379d730ca
commit 05b03a1ea1
2 changed files with 3 additions and 1 deletions

View File

@ -31,6 +31,8 @@ namespace nadena.dev.modular_avatar.core.editor
public bool InitiallyActive =>
((ControllingConditions.Count == 0) || ControllingConditions.All(c => c.InitiallyActive)) ^ Inverted;
public bool IsConstantActive =>
((ControllingConditions.Count == 0) || ControllingConditions.All(c => c.IsConstantActive)) ^ Inverted;
public bool IsDelete;
public bool Inverted;

View File

@ -287,7 +287,7 @@ namespace nadena.dev.modular_avatar.core.editor
}
var deletions = info.actionGroups.Where(agk => agk.IsDelete).ToList();
if (deletions.Any(d => d.InitiallyActive))
if (deletions.Any(d => d.IsConstantActive))
{
// always deleted
shapes.Remove(key);