godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.38k stars 21.26k forks source link

Fix move, rotate, scale for selection that includes controls in containers #99497

Open Giganzo opened 4 days ago

Giganzo commented 4 days ago

Fixes: https://github.com/godotengine/godot/issues/99496

Selection only includes controls in a container

Before:

When using modifiers with selection mode:

dev4-bug.webm

Selecting mode from toolbar:

dev4-bug-tools.webm

After:

When using shortcuts with selection mode:

dev-fix.webm

Selecting mode from toolbar:

dev-fix-tools.webm

Constrain axis

If you had a control in a container selected with other items and you moved or scaled selection by grabbing the gizmo it would not constrain it to that axis.

Before:

Screencast_20241119_163238.webm

After:

Screencast_20241119_163328.webm