From 44aa26ad665bf95a78780837c7b0140c7edd8dd9 Mon Sep 17 00:00:00 2001 From: Krystof Klestil Date: Wed, 15 Sep 2021 00:10:20 +0200 Subject: Fix issues with scaling Node3Ds --- editor/plugins/node_3d_editor_plugin.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'editor') diff --git a/editor/plugins/node_3d_editor_plugin.cpp b/editor/plugins/node_3d_editor_plugin.cpp index 291cafab2b..be5d756444 100644 --- a/editor/plugins/node_3d_editor_plugin.cpp +++ b/editor/plugins/node_3d_editor_plugin.cpp @@ -1831,6 +1831,8 @@ void Node3DEditorViewport::_sinput(const Ref &p_event) { motion = Vector3(scale, scale, scale); } + motion /= click.distance_to(_edit.center); + // Disable local transformation for TRANSFORM_VIEW bool local_coords = (spatial_editor->are_local_coords_enabled() && _edit.plane != TRANSFORM_VIEW); -- cgit v1.2.3