mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-04-11 23:19:00 +08:00
fix: shape changer delete preview not working
This commit is contained in:
parent
c379d730ca
commit
05b03a1ea1
@ -31,6 +31,8 @@ namespace nadena.dev.modular_avatar.core.editor
|
|||||||
|
|
||||||
public bool InitiallyActive =>
|
public bool InitiallyActive =>
|
||||||
((ControllingConditions.Count == 0) || ControllingConditions.All(c => c.InitiallyActive)) ^ Inverted;
|
((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 IsDelete;
|
||||||
|
|
||||||
public bool Inverted;
|
public bool Inverted;
|
||||||
|
@ -287,7 +287,7 @@ namespace nadena.dev.modular_avatar.core.editor
|
|||||||
}
|
}
|
||||||
|
|
||||||
var deletions = info.actionGroups.Where(agk => agk.IsDelete).ToList();
|
var deletions = info.actionGroups.Where(agk => agk.IsDelete).ToList();
|
||||||
if (deletions.Any(d => d.InitiallyActive))
|
if (deletions.Any(d => d.IsConstantActive))
|
||||||
{
|
{
|
||||||
// always deleted
|
// always deleted
|
||||||
shapes.Remove(key);
|
shapes.Remove(key);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user