mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 15:44:12 -06:00
Fixed wrong showing of the default context menu if right button was clicked on empty space when several objects are selected in 3DScene
This commit is contained in:
parent
0791a2b3ed
commit
b6b5bdb592
1 changed files with 4 additions and 1 deletions
|
@ -4178,8 +4178,11 @@ void Plater::priv::on_right_click(RBtnEvent& evt)
|
|||
wxMenu* menu = nullptr;
|
||||
|
||||
if (obj_idx == -1) { // no one or several object are selected
|
||||
if (evt.data.second) // right button was clicked on empty space
|
||||
if (evt.data.second) { // right button was clicked on empty space
|
||||
if (!get_selection().is_empty()) // several objects are selected in 3DScene
|
||||
return;
|
||||
menu = menus.default_menu();
|
||||
}
|
||||
else
|
||||
menu = menus.multi_selection_menu();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue