|
|
@ -35,12 +35,12 @@ namespace Fungus |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (fungusScript.executingSequence == null) |
|
|
|
if (fungusScript.executingSequence == null) |
|
|
|
{ |
|
|
|
{ |
|
|
|
fungusScript.selectedCommands.Clear(); |
|
|
|
fungusScript.ClearSelectedCommands(); |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
fungusScript.selectedCommands.Clear(); |
|
|
|
fungusScript.ClearSelectedCommands(); |
|
|
|
fungusScript.selectedCommands.Add(fungusScript.executingSequence.activeCommand); |
|
|
|
fungusScript.AddSelectedCommand(fungusScript.executingSequence.activeCommand); |
|
|
|
EditorUtility.SetDirty(fungusScript); |
|
|
|
EditorUtility.SetDirty(fungusScript); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -85,7 +85,7 @@ namespace Fungus |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (fungusScript.selectedCommands[0] == null) |
|
|
|
if (fungusScript.selectedCommands[0] == null) |
|
|
|
{ |
|
|
|
{ |
|
|
|
fungusScript.selectedCommands.Clear(); |
|
|
|
fungusScript.ClearSelectedCommands(); |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|