mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 18:42:24 +00:00
FDM supports gizmo: the cursor does not stick to the cut when clipping plane is used
This commit is contained in:
@@ -270,8 +270,6 @@ bool operator<(const GLGizmoFdmSupports::NeighborData& a, const GLGizmoFdmSuppor
|
|||||||
// concludes that the event was not intended for it, it should return false.
|
// concludes that the event was not intended for it, it should return false.
|
||||||
bool GLGizmoFdmSupports::gizmo_event(SLAGizmoEventType action, const Vec2d& mouse_position, bool shift_down, bool alt_down, bool control_down)
|
bool GLGizmoFdmSupports::gizmo_event(SLAGizmoEventType action, const Vec2d& mouse_position, bool shift_down, bool alt_down, bool control_down)
|
||||||
{
|
{
|
||||||
bool processed = false;
|
|
||||||
|
|
||||||
if (action == SLAGizmoEventType::MouseWheelUp
|
if (action == SLAGizmoEventType::MouseWheelUp
|
||||||
|| action == SLAGizmoEventType::MouseWheelDown) {
|
|| action == SLAGizmoEventType::MouseWheelDown) {
|
||||||
if (control_down) {
|
if (control_down) {
|
||||||
@@ -354,7 +352,7 @@ bool GLGizmoFdmSupports::gizmo_event(SLAGizmoEventType action, const Vec2d& mous
|
|||||||
{
|
{
|
||||||
// In case this hit is clipped, skip it.
|
// In case this hit is clipped, skip it.
|
||||||
if (is_mesh_point_clipped(hit.cast<double>())) {
|
if (is_mesh_point_clipped(hit.cast<double>())) {
|
||||||
processed = true;
|
some_mesh_was_hit = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -491,7 +489,7 @@ bool GLGizmoFdmSupports::gizmo_event(SLAGizmoEventType action, const Vec2d& mous
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return processed;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user