From de059c33bcb514640f5eb869e0444bdb1759630f Mon Sep 17 00:00:00 2001 From: Relintai Date: Sun, 11 Jun 2023 13:21:45 +0200 Subject: [PATCH] Use the new scaled grab radius in MDIGizmo. --- modules/mesh_data_resource/editor/mdi_gizmo.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/mesh_data_resource/editor/mdi_gizmo.cpp b/modules/mesh_data_resource/editor/mdi_gizmo.cpp index e71836212..03c234f35 100644 --- a/modules/mesh_data_resource/editor/mdi_gizmo.cpp +++ b/modules/mesh_data_resource/editor/mdi_gizmo.cpp @@ -31,6 +31,7 @@ SOFTWARE. #include "editor/editor_node.h" #include "modules/mesh_utils/mesh_utils.h" #include "scene/3d/camera.h" +#include "editor/editor_settings.h" void MDIGizmo::set_visible(const bool visible) { _visible = visible; @@ -284,7 +285,7 @@ bool MDIGizmo::selection_click_select_front_or_back(Camera *camera, const Refget_global_transform(); Vector3 ray_from = camera->get_global_transform().origin; Vector2 gpoint = event->get_position(); - float grab_threshold = 8; + float grab_threshold = EDITOR_GET("editors/poly_editor/point_grab_radius"); // select vertex int closest_idx = -1; @@ -362,7 +363,7 @@ bool MDIGizmo::selection_click_select_through(Camera *camera, const Refget_global_transform(); Vector3 ray_from = camera->get_global_transform().origin; Vector2 gpoint = event->get_position(); - float grab_threshold = 8; + float grab_threshold = EDITOR_GET("editors/poly_editor/point_grab_radius"); // select vertex int closest_idx = -1;