mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 20:03:47 +00:00
Fix issue that clicking paint gizmos while mouse is hovering above the model, view panning doesn't work (#10164)
Fix issue that clicking paint gizmos while mouse is hovering above the model, view panning doesn't work. The issue was introduced in #8776.
This commit is contained in:
@@ -1658,6 +1658,11 @@ void GLCanvas3D::enable_legend_texture(bool enable)
|
|||||||
void GLCanvas3D::enable_picking(bool enable)
|
void GLCanvas3D::enable_picking(bool enable)
|
||||||
{
|
{
|
||||||
m_picking_enabled = enable;
|
m_picking_enabled = enable;
|
||||||
|
|
||||||
|
// Orca: invalidate hover state when dragging is toggled, otherwise if we turned off dragging
|
||||||
|
// while hovering above a volume, the hovering state won't update even if mouse has moved away.
|
||||||
|
// Fixes https://github.com/SoftFever/OrcaSlicer/pull/9979#issuecomment-3065575889
|
||||||
|
m_hover_volume_idxs.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GLCanvas3D::enable_moving(bool enable)
|
void GLCanvas3D::enable_moving(bool enable)
|
||||||
|
|||||||
Reference in New Issue
Block a user