Browse Source

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
master
desktop-maesty/steve 8 years ago
parent
commit
c8f8bf4d8b
  1. 4
      Assets/Fungus/Scripts/Editor/BlockEditor.cs

4
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;
}

Loading…
Cancel
Save