Merge pull request #52665 from lentsius-bark/fix-3d-scale-sensitivity

[3.x] Fix scale sensitivity for 3D objects.
This commit is contained in:
Rémi Verschelde 2021-09-15 09:31:36 +02:00 committed by GitHub
commit 29eefc466e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -1612,6 +1612,8 @@ void SpatialEditorViewport::_sinput(const Ref<InputEvent> &p_event) {
motion = Vector3(scale, scale, scale);
}
motion /= click.distance_to(_edit.center);
List<Node *> &selection = editor_selection->get_selected_node_list();
// Disable local transformation for TRANSFORM_VIEW