Merge pull request #52685 from lentsius-bark/node3d-scaling-fix

Fix scale sensitivity for 3D objects
This commit is contained in:
Rémi Verschelde 2021-09-15 08:01:20 +02:00 committed by GitHub
commit 5139f18be4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);