Skip to content

Commit

Permalink
Merge pull request #52665 from lentsius-bark/fix-3d-scale-sensitivity
Browse files Browse the repository at this point in the history
[3.x] Fix scale sensitivity for 3D objects.
  • Loading branch information
akien-mga authored Sep 15, 2021
2 parents 2b61a4f + 5e2450c commit 29eefc4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions editor/plugins/spatial_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 29eefc4

Please sign in to comment.