diff --git a/Assets/Fungus/Scripts/Editor/PopupContent/CommandSelectorPopupWindowContent.cs b/Assets/Fungus/Scripts/Editor/PopupContent/CommandSelectorPopupWindowContent.cs index 8442f64c..e00f4b74 100644 --- a/Assets/Fungus/Scripts/Editor/PopupContent/CommandSelectorPopupWindowContent.cs +++ b/Assets/Fungus/Scripts/Editor/PopupContent/CommandSelectorPopupWindowContent.cs @@ -176,8 +176,12 @@ namespace Fungus.EditorUtils // Because this is an async call, we need to force prefab instances to record changes PrefabUtility.RecordPrefabInstancePropertyModifications(block); - flowchart.ClearSelectedCommands(); + //clear commands just in case there was a selection made prior, + // this way, only one command is selected at the end; the new one. + flowchart.ClearSelectedCommands(); + + flowchart.SelectedCommands.Add(newCommand); //select the new command. } } -} \ No newline at end of file +}