mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Fixed extra "Add_Selection" snapshot on call context menu from scene
+ Added take_snapshot for toggle_instance_printable_state
This commit is contained in:
parent
52702769d4
commit
0a9c5a9433
3 changed files with 13 additions and 3 deletions
|
@ -2921,7 +2921,11 @@ void GLCanvas3D::on_mouse(wxMouseEvent& evt)
|
|||
&& m_gizmos.get_current_type() != GLGizmosManager::SlaSupports) // disable context menu when the gizmo is open
|
||||
{
|
||||
// forces the selection of the volume
|
||||
m_selection.add(volume_idx);
|
||||
/* m_selection.add(volume_idx); // #et_FIXME_if_needed
|
||||
* To avoid extra "Add-Selection" snapshots,
|
||||
* call add() with check_for_already_contained=true
|
||||
* */
|
||||
m_selection.add(volume_idx, true, true);
|
||||
m_gizmos.refresh_on_off_state();
|
||||
post_event(SimpleEvent(EVT_GLCANVAS_OBJECT_SELECT));
|
||||
m_gizmos.update_data();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue