From c8f8bf4d8b46654b07cd1b113fecbc8ce6481b0b Mon Sep 17 00:00:00 2001 From: desktop-maesty/steve Date: Fri, 14 Jul 2017 21:51:52 +1000 Subject: [PATCH] Smarter split actually being tested now Remove attempt to keep index in command list as it is not required for this feature and is causing an exception due to unmatched GUILayouts --- Assets/Fungus/Scripts/Editor/BlockEditor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Fungus/Scripts/Editor/BlockEditor.cs b/Assets/Fungus/Scripts/Editor/BlockEditor.cs index 8119a2e4..9aa852a6 100644 --- a/Assets/Fungus/Scripts/Editor/BlockEditor.cs +++ b/Assets/Fungus/Scripts/Editor/BlockEditor.cs @@ -373,7 +373,7 @@ namespace Fungus.EditorUtils var filteredAttributes = GetFilteredSupportedCommands(flowchart); var upperCommandText = commandTextFieldContents.ToUpper().Trim(); - var tokens = upperCommandText.Split(); + var tokens = upperCommandText.Split(SPLIT_INPUT_ON); //we want commands that have all the elements you have typed filteredAttributes = filteredAttributes.Where((x) => @@ -897,7 +897,7 @@ namespace Fungus.EditorUtils PrefabUtility.RecordPrefabInstancePropertyModifications(block); flowchart.ClearSelectedCommands(); - flowchart.AddSelectedCommand(newCommand); + //flowchart.AddSelectedCommand(newCommand); commandTextFieldContents = string.Empty; }