diff --git a/Assets/Fungus/Scripts/Editor/FlowchartWindow.cs b/Assets/Fungus/Scripts/Editor/FlowchartWindow.cs index 13c3db78..fcd84cc3 100644 --- a/Assets/Fungus/Scripts/Editor/FlowchartWindow.cs +++ b/Assets/Fungus/Scripts/Editor/FlowchartWindow.cs @@ -510,6 +510,7 @@ namespace Fungus.EditorUtils { GUILayout.Space(8); + EditorGUI.BeginChangeCheck(); if (variableListAdaptor != null) { @@ -519,6 +520,11 @@ namespace Fungus.EditorUtils variableListAdaptor.DrawVarList(0); } + if(EditorGUI.EndChangeCheck()) + { + EditorUtility.SetDirty(flowchart); + } + Rect variableWindowRect = GUILayoutUtility.GetLastRect(); if (flowchart.VariablesExpanded && flowchart.Variables.Count > 0) {