Fix double duplication of blocks with Ctrl+D
@ -5,6 +5,7 @@ Unreleased
======
## Fixed
- Add missing VariableDrawer for ObjectVariable. Thanks to CG-Tespy.
- Fix double duplication of blocks in flowchart window. Thanks to ongjinwen.
## Changed
- Block will LogError when an exception is caught from a Command being Executed.
@ -1895,11 +1895,8 @@ namespace Fungus.EditorUtils
{
copyList.Clear();
foreach (var block in flowchart.SelectedBlocks)
copyList.Add(new BlockCopy(block));
}
foreach (var block in mouseDownSelectionState)
foreach (var block in flowchart.SelectedBlocks
.Union(mouseDownSelectionState))