Skip to content

Always convert camera rotation from deg to rad#929

Merged
chreden merged 3 commits intomasterfrom
bug/928
Apr 9, 2022
Merged

Always convert camera rotation from deg to rad#929
chreden merged 3 commits intomasterfrom
bug/928

Conversation

@chreden
Copy link
Copy Markdown
Owner

@chreden chreden commented Apr 6, 2022

Always convert both camera rotation fields from degrees to radians if the setting is enabled.
Previously only the one that was edited was converted, which meant that the degrees value of the other angle was used as radians without conversion.
Closes #928

Always convert both camera rotation fields from degrees to radians if the setting is enabled.
Previously only the one that was edited was converted, which meant that the degrees value of the other angle was used as radians without conversion.
Closes #928
@chreden chreden added the bug label Apr 6, 2022
@chreden chreden added this to the 2.0.0 milestone Apr 6, 2022
@chreden chreden requested a review from makotocchi April 6, 2022 11:24
@chreden chreden self-assigned this Apr 6, 2022
chreden added 2 commits April 6, 2022 12:30
Convert outgoing values, don't update the stored ones so that in tests they don't get doubly converted.
In the real program they are reset by a call to `set_rotation` so this doesn't happen, but can't rely on that.
@chreden chreden merged commit d584409 into master Apr 9, 2022
@chreden chreden deleted the bug/928 branch April 9, 2022 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Camera angle entry incorrectly updates one angle when degrees used

1 participant