mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 15:19:03 +08:00
Fixed selection after multiple selected Copy/Paste
This commit is contained in:
parent
b0d4cb6e06
commit
13ee32538a
@ -2849,6 +2849,9 @@ void ObjectList::update_selections_on_canvas()
|
|||||||
wxDataViewItemArray sels;
|
wxDataViewItemArray sels;
|
||||||
GetSelections(sels);
|
GetSelections(sels);
|
||||||
|
|
||||||
|
// clear selection before adding new elements
|
||||||
|
selection.clear(); //OR remove_all()?
|
||||||
|
|
||||||
for (auto item : sels)
|
for (auto item : sels)
|
||||||
{
|
{
|
||||||
add_to_selection(item, selection, instance_idx, mode);
|
add_to_selection(item, selection, instance_idx, mode);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user