Browse Source

Fixed adding new commands to legacy sequence objects

master
chrisgregan 10 years ago
parent
commit
c653ceda08
  1. 2
      Assets/Fungus/FungusScript/Editor/CommandListAdaptor.cs

2
Assets/Fungus/FungusScript/Editor/CommandListAdaptor.cs

@ -94,7 +94,7 @@ namespace Fungus
return null;
}
Command newCommand = Undo.AddComponent<Note>(fungusScript.gameObject) as Command;
Command newCommand = Undo.AddComponent<Note>(sequence.gameObject) as Command;
fungusScript.selectedCommand = newCommand;
return newCommand;

Loading…
Cancel
Save