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;