mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-02 11:33:59 -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;
|
wxMenu* menu = nullptr;
|
||||||
|
|
||||||
if (obj_idx == -1) { // no one or several object are selected
|
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();
|
menu = menus.default_menu();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
menu = menus.multi_selection_menu();
|
menu = menus.multi_selection_menu();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue