Skip to content

Add 'Move to view' and make 'Align to view' only align#23334

Merged
akien-mga merged 1 commit intogodotengine:masterfrom
malbach:align_sel_view
Jul 24, 2019
Merged

Add 'Move to view' and make 'Align to view' only align#23334
akien-mga merged 1 commit intogodotengine:masterfrom
malbach:align_sel_view

Conversation

@malbach
Copy link
Contributor

@malbach malbach commented Oct 27, 2018

Hi,
After discovering "Align with view" I played with it a bit and was dissatisfied with how it worked.
Maybe I'm picky, but for me "Align with view" should rotate but not move the selected node(s) 🙅‍♂️
So I made it only rotate the selected nodes to be aligned with the view, and added a menu option "Move to view" which only does what "Align with view" did (do you follow ? 😛 ).
I also added a "focus_selection" at the end to avoid errors when the selected node is a camera (as reported in #23063).

@akien-mga
Copy link
Member

akien-mga commented Oct 29, 2018

Well, if we're being pedantic on the semantics of "Align", then one would very much expect "Move" to only impact translation, not the rotation or scale.

To me align means the same as sync, as in "align/sync property X with property Y", so it's not limited to the rotation/"look at" angle only. So more than nitpicking about semantics, it would be interesting to know what are the use cases and if people need to be able to align rotation only, translation only, scale only, or full transform.

Edit: That's said, I'm not against the change per se :P Sorry if the above message comes off a bit grumpy. IMO the added feature might be useful, but maybe we need to go full bikeshedding on the naming as I'm not convinced by either "Align with view" and "Move to view" usage (both before and after this PR).

@akien-mga
Copy link
Member

Moving to 3.2 milestone as we're about to enter the beta stage and release freeze for Godot 3.1. Only bug fixes against issues of the 3.1 milestone (or enhancements to core features of the 3.1 roadmap) will be considered until 3.1-stable is released.

Note: If it's merged after 3.1-stable is released, this change might be considered for cherry-picking into a later 3.1.x release.

@akien-mga akien-mga modified the milestones: 3.1, 3.2 Dec 12, 2018
@akien-mga
Copy link
Member

Sorry for the late review.

We finally got to discuss this in a PR review meeting and bikeshed on the naming, see logs from 15:08.

We'd suggest to use the names "Align Transform with View" and "Align Rotation with View" to be explicit about what each operation does. Could you do this change, if you agree that it makes things clear? (And change the enum names accordingly.)

@akien-mga
Copy link
Member

I pushed an update with the proposed label change.

@akien-mga akien-mga merged commit c608b6f into godotengine:master Jul 24, 2019
@akien-mga
Copy link
Member

Thanks!

@malbach
Copy link
Contributor Author

malbach commented Jul 25, 2019

hi,
Sorry I could not answer before, still in holidays 😄
Thanks @akien-mga for doing it 👍

@malbach malbach deleted the align_sel_view branch January 13, 2020 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants