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

V14: Use decimal in slider property editor #17568

Merged

Conversation

nikolajlauridsen
Copy link
Contributor

@nikolajlauridsen nikolajlauridsen commented Nov 18, 2024

Fixes the backend part of #17546.

The issue was that the SliderPropertyEditor assumed that sliders could not be decimal values; however, they can. This can also be seen in the SliderValueConverter and in the models generated by the model builder, which all assume a Decimal value.

This fixes the backend issues, however, the UI looks quite weird still, when not in range mode the decimals aren't showing, and when in range mode they show but aren't properly formatted showing float imprecision I.E 0.30000000001. Edit: This turned out to be a UUI bug, I've made a fix that has already been merged in UUI

For testing see original issue

Copy link
Contributor

@Migaroez Migaroez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and tests good!

@nikolajlauridsen nikolajlauridsen merged commit 1e9182c into v14/dev Nov 19, 2024
16 of 17 checks passed
@nikolajlauridsen nikolajlauridsen deleted the v14/fix/use-decimal-in-slider-property-editor branch November 19, 2024 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants