Tech ENABLE_SINKING_CONTOURS -> Fix for showing sinking contours while dragging objects
This commit is contained in:
parent
1ea541767f
commit
97de723146
1 changed files with 5 additions and 3 deletions
|
@ -3135,9 +3135,6 @@ void GLCanvas3D::on_mouse(wxMouseEvent& evt)
|
||||||
m_selection.start_dragging();
|
m_selection.start_dragging();
|
||||||
m_mouse.drag.start_position_3D = m_mouse.scene_position;
|
m_mouse.drag.start_position_3D = m_mouse.scene_position;
|
||||||
m_sequential_print_clearance_first_displacement = true;
|
m_sequential_print_clearance_first_displacement = true;
|
||||||
#if ENABLE_SINKING_CONTOURS
|
|
||||||
show_sinking_contours();
|
|
||||||
#endif // ENABLE_SINKING_CONTOURS
|
|
||||||
m_moving = true;
|
m_moving = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3323,6 +3320,11 @@ void GLCanvas3D::on_mouse(wxMouseEvent& evt)
|
||||||
else
|
else
|
||||||
evt.Skip();
|
evt.Skip();
|
||||||
|
|
||||||
|
#if ENABLE_SINKING_CONTOURS
|
||||||
|
if (m_moving)
|
||||||
|
show_sinking_contours();
|
||||||
|
#endif // ENABLE_SINKING_CONTOURS
|
||||||
|
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
if (on_enter_workaround)
|
if (on_enter_workaround)
|
||||||
m_mouse.position = Vec2d(-1., -1.);
|
m_mouse.position = Vec2d(-1., -1.);
|
||||||
|
|
Loading…
Reference in a new issue