Fix #106484: Show all rotations with same precision #106515
Increase precision of some rotational inputs so that they all show the
same precision. And have the arrows change in full degrees.
As #106484 shows, it is confusing that our display of Object rotational degrees does not show tenths of degrees above 99.9 degrees This is especially confusing because clicking the "up" and "down" arrow buttons continues to change in tenths.
The vast majority of our PROP_EULER properties specify a precision of RNA_TRANSLATION_PREC_DEFAULT, which is 5. Without this the precision is 3. This PR just makes all of these rotational inputs have the same precision of RNA_TRANSLATION_PREC_DEFAULT for consistency.
A bit more contentious is that this also changes all these rotational properties to use a
step value of 100. This is because float properties scale this value by UI_PRECISION_FLOAT_SCALE, which is 0.01f. Most rotational inputs are using a step value of 1 which means that clicking the "up" and "down" arrows changes the rotation by a hundredth of a degree. Therefore this PR makes it so that "up" and "down" changes a degree, which seems expected.
Looks good! I see a lot of other uses of
PROP_FLOAT, PROP_EULER and just
PROP_EULER that don't have this UI data set. Maybe they would have the same issue?
Just requesting changes pending investigation on whether this same problem applies elsewhere :)
@HooglyBoogly - ...investigation on whether this same problem applies elsewhere
That was a great suggestion. This PR now removes all the inconsistencies with these and some other oddness. I updated the first comment to explain it.
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?