Skip to content

Commit

Permalink
Fix issues with scaling 3D Objects
Browse files Browse the repository at this point in the history
When scaling 3D objects the distance form them is not considered. Allowing for finer contorl. Overscaled objects no longer break the gizmo.
  • Loading branch information
lentsius-bark committed Sep 15, 2021
1 parent 20f14e0 commit 5e2450c
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 5e2450c

Please sign in to comment.