diff options
author | Krystof Klestil <krystofklestil@live.com> | 2021-09-15 00:10:20 +0200 |
---|---|---|
committer | Krystof Klestil <krystofklestil@live.com> | 2021-09-15 00:10:20 +0200 |
commit | 44aa26ad665bf95a78780837c7b0140c7edd8dd9 (patch) | |
tree | a287ad9cae3b16e1d3a6a1183ce4e1ff756fd830 /editor/plugins | |
parent | cd5a8f8dd4a86b06f6aa898db03a18d5dbd0f94c (diff) |
Fix issues with scaling Node3Ds
Diffstat (limited to 'editor/plugins')
-rw-r--r-- | editor/plugins/node_3d_editor_plugin.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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<InputEvent> &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); |