Browse Source

Merge pull request #971 from ongjinwen/feature/FixDuplicateBug

Fix double duplication of blocks with Ctrl+D
master
Steve Halliwell 4 years ago
parent
commit
101f525fa9
  1. 1
      Assets/Fungus/Docs/CHANGELOG.txt
  2. 7
      Assets/Fungus/Scripts/Editor/FlowchartWindow.cs

1
Assets/Fungus/Docs/CHANGELOG.txt

@ -5,6 +5,7 @@ Unreleased
====== ======
## Fixed ## Fixed
- Add missing VariableDrawer for ObjectVariable. Thanks to CG-Tespy. - Add missing VariableDrawer for ObjectVariable. Thanks to CG-Tespy.
- Fix double duplication of blocks in flowchart window. Thanks to ongjinwen.
## Changed ## Changed
- Block will LogError when an exception is caught from a Command being Executed. - Block will LogError when an exception is caught from a Command being Executed.

7
Assets/Fungus/Scripts/Editor/FlowchartWindow.cs

@ -1895,11 +1895,8 @@ namespace Fungus.EditorUtils
{ {
copyList.Clear(); copyList.Clear();
foreach (var block in flowchart.SelectedBlocks) foreach (var block in flowchart.SelectedBlocks
{ .Union(mouseDownSelectionState))
copyList.Add(new BlockCopy(block));
}
foreach (var block in mouseDownSelectionState)
{ {
copyList.Add(new BlockCopy(block)); copyList.Add(new BlockCopy(block));
} }

Loading…
Cancel
Save