Enhanced object snapping for box edit mode - other corners snap too second order

This commit is contained in:
Matthias Koefferlein
2025-09-09 21:52:40 +02:00
parent 879df5a85b
commit e4789f7f1b
3 changed files with 34 additions and 5 deletions
@@ -277,9 +277,11 @@ EditorServiceBase::clear_mouse_cursors ()
}
void
EditorServiceBase::mouse_cursor_from_snap_details (const lay::PointSnapToObjectResult &snap_details)
EditorServiceBase::mouse_cursor_from_snap_details (const lay::PointSnapToObjectResult &snap_details, bool noclear)
{
clear_mouse_cursors ();
if (! noclear) {
clear_mouse_cursors ();
}
add_mouse_cursor (snap_details.snapped_point,
snap_details.object_snap == lay::PointSnapToObjectResult::ObjectVertex ||
+1 -1
View File
@@ -110,7 +110,7 @@ public:
/**
* @brief Provides a nice mouse tracking cursor from the given snap details
*/
void mouse_cursor_from_snap_details (const lay::PointSnapToObjectResult &snap_details);
void mouse_cursor_from_snap_details (const lay::PointSnapToObjectResult &snap_details, bool noclear = false);
/**
* @brief Gets the tracking cursor color