Skip to content
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

Fix capsule height/radius setters with linked properties #51583

Merged

Conversation

pouleyKetchoupp
Copy link
Contributor

@pouleyKetchoupp pouleyKetchoupp commented Aug 12, 2021

Fixes a regression due to the changes made in #51522 and #51527.

Capsule height and radius setters can modify each other, rather than using clamping, to avoid cases where values are not set correctly when loading a scene (depending on the order of properties).

Inspector undo/redo:
Added the possibility to link properties together in the editor, so they can be undone together, for cases where a property can modify another one.

Gizmo undo/redo:
Capsule handles keep track of both radius and height values so they can be undone together.

editor/editor_inspector.cpp Outdated Show resolved Hide resolved
@pouleyKetchoupp pouleyKetchoupp force-pushed the capsule-height-radius-setters branch from f8ea0d0 to 71d3545 Compare August 19, 2021 17:29
Capsule height and radius setters can modify each other, rather than
using clamping, to avoid cases where values are not set correctly when
loading a scene (depending on the order of properties).

Inspector undo/redo:
Added the possibility to link properties together in the editor, so
they can be undone together, for cases where a property can modify
another one.

Gizmo undo/redo:
Capsule handles pass both radius and height values so they can be undone
together.
@pouleyKetchoupp pouleyKetchoupp force-pushed the capsule-height-radius-setters branch from 71d3545 to 645bc94 Compare August 19, 2021 17:31
@akien-mga akien-mga merged commit 5b30685 into godotengine:master Aug 19, 2021
@akien-mga
Copy link
Member

Thanks!

@pouleyKetchoupp pouleyKetchoupp deleted the capsule-height-radius-setters branch August 19, 2021 18:50
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.

3 participants