Godot Engine – Multi-platform 2D and 3D game engine
Fix resize handle radius not adapting to the current scale
Michael Alexsanderc81db5afe769
diff --git a/scene/debugger/canvas_item_manipulator.cpp b/scene/debugger/canvas_item_manipulator.cppindex 34f0f9c36c8..d5b3ee67fb6 100644--- a/scene/debugger/canvas_item_manipulator.cpp+++ b/scene/debugger/canvas_item_manipulator.cpp@@ -571,7 +571,7 @@ bool CanvasItemManipulator::_gui_input_resize(const Ref<InputEvent> &p_event) {};DragType resize_drag = DRAG_NONE;- real_t radius = RESIZE_HANDLE_DIAMETER * (1.5f / 2.0f);+ real_t radius = (RESIZE_HANDLE_DIAMETER / 2) * 1.5 * scale;for (int i = 0; i < 4; i++) {int prev = (i + 3) % 4;