Fix states not correctly validated in EventBus.
This commit is contained in:
@@ -47,8 +47,6 @@ namespace Cryville.Crtr.Event {
|
|||||||
dest.workingStates.Clear();
|
dest.workingStates.Clear();
|
||||||
dest.invalidatedStates.Clear();
|
dest.invalidatedStates.Clear();
|
||||||
RootState.CopyTo(ct, dest.RootState);
|
RootState.CopyTo(ct, dest.RootState);
|
||||||
dest.ValidateStates();
|
|
||||||
|
|
||||||
if (ct >= 2) {
|
if (ct >= 2) {
|
||||||
dest.activeContainers.Clear();
|
dest.activeContainers.Clear();
|
||||||
foreach (var c in activeContainers) {
|
foreach (var c in activeContainers) {
|
||||||
@@ -58,6 +56,7 @@ namespace Cryville.Crtr.Event {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
dest.ValidateStates();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Dispose() {
|
public void Dispose() {
|
||||||
@@ -65,7 +64,7 @@ namespace Cryville.Crtr.Event {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void NotifyWorkingChanged(ContainerState state) {
|
public void NotifyWorkingChanged(ContainerState state) {
|
||||||
invalidatedStates.Add(state);
|
if (!invalidatedStates.Contains(state)) invalidatedStates.Add(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Expand(ContainerState s = null) {
|
void Expand(ContainerState s = null) {
|
||||||
|
Reference in New Issue
Block a user