-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove Rotate and Resize Actions #804
Conversation
This reverts commit ee3120a.
- Restructure checks for different resize modes. - Move child objects on vertical resize (up/down).
Implement up/down arrow handle for height adjustment as plane with texture. A billboarding effect makes the handle face main camera.
The up/down resize handle is placed at the camera-facing side of the resized object and the billboarding effect was removed. This prevents the handle from being occluded by child nodes.
- All resize handles are now textured planes showing arrows. - Add dedicated shader for sprites in portal.
Remove gizmos used for rotate and scale from scene SEENewWorld as the actions have been dropped.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, it's always nice to get a PR where thousands of lines can be deleted :D
Just a few comments below, but all of them are minor.
Apply changes suggested by reviewer @falko17.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from the compile error, this looks good to me now and can be merged! I'll enable auto-merge, so as soon as the pipeline runs through (i.e., the error is fixed) this should be done.
I currently cannot test AR at all but this fixes the compilation errors. We need someone to test AR regularly because most developers won't be able to do that.
I have removed the VR code paths for rotate as well. However, I currently cannot test VR at all but this fixes the I think we need someone to test VR regularly because most developers won't be able to do that. |
This MR removes the now obsolete actions for scaling and rotating a node along with the gizmos.
The resize node action has been improved to allow for resize on the up-axis. Additionally, sprite handles now indicate the resize direction. The handles use a new dedicated shader that honors portals and transparency. The up/down handle is repositioned to the side of the node that faces the camera so that it should be easily visible without the clutter of adding four of them.
Background:
As node dimensions are usually derived from code metrics, rotation and resize are generally not a good idea.
However, there are exceptions that can be flagged to
AllowManualResize
. These are, as of now, the architecture nodes that need to be resized to allow for other nodes being placed on them.