Open henriiquecampos opened 4 years ago
Well yes, how would you want a control to snap to a grid it is not aligned to ? Maybe a local grid, but that is not the same thing.
Edit : What you describe here is expected, so I moved to to enhancement.
What do you mean by "a grid they are not aligned to"? I didn't get it. The rotation offsets their position somehow?
Their position keep snapping even when rotated, is just the margins that stop snapping after the rotation.
I don't think this is expected, other applications are consistent: you rotate the object, it will keep the snapping regardless.
Their position keep snapping even when rotated, is just the margins that stop snapping after the rotation.
The position is a like a point, even if rotated you can easily snap it to a 2D grid. The margin is a single value on one of the side of the control, it cannot be snapped unless it is parallel to one of the grid axis.
I don't think this is expected, other applications are consistent: you rotate the object, it will keep the snapping regardless.
By expected I mean this is not a bug. I disabled the snapping if the control does not align with the grid, on purpose.
On your example, it is rotated by 90°. We could allow snapping for nodes rotated by multiples of 90° to snap to the grid, but that is an enhancement.
Godot version: Godot 3.2.rc1
OS/device including version: Solus 4 Gnome
Issue description: When ou try to drag the margin of a rotated Control node they don't snap anymore. Might be related to #23030
Steps to reproduce: