Nodes - Show errors in node editor when a node fails to evaluate

This commit is contained in:
Robert committed 2022-09-01 20:33:55 +02:00
1 parent cd537051ca
commit eca8985fc4
9 files changed
+89 -48

No files matched your search

+8 -3
View File
@@ -69,11 +69,16 @@ public abstract class BreakableModel : CorePropertyChanged, IBreakableModel
/// <inheritdoc />
public void ClearBrokenState(string state)
{
if (state == null) throw new ArgumentNullException(nameof(state));
if (state == null)
throw new ArgumentNullException(nameof(state));
// If there was no broken state to begin with, done!
if (BrokenState == null)
return;
if (BrokenState != state) return;
// Only clear similar broken states
if (BrokenState != state)
return;
BrokenState = null;
BrokenStateException = null;
OnBrokenStateChanged();