From c653ceda08175ff0a93af4679e3d0aa07421bffc Mon Sep 17 00:00:00 2001 From: chrisgregan Date: Fri, 26 Sep 2014 15:34:26 +0100 Subject: [PATCH] Fixed adding new commands to legacy sequence objects --- Assets/Fungus/FungusScript/Editor/CommandListAdaptor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Fungus/FungusScript/Editor/CommandListAdaptor.cs b/Assets/Fungus/FungusScript/Editor/CommandListAdaptor.cs index 0163a24f..59818639 100644 --- a/Assets/Fungus/FungusScript/Editor/CommandListAdaptor.cs +++ b/Assets/Fungus/FungusScript/Editor/CommandListAdaptor.cs @@ -94,7 +94,7 @@ namespace Fungus return null; } - Command newCommand = Undo.AddComponent(fungusScript.gameObject) as Command; + Command newCommand = Undo.AddComponent(sequence.gameObject) as Command; fungusScript.selectedCommand = newCommand; return newCommand;