Fix #106484: Show all rotations with same precision #106515

Merged
Harley Acheson merged 1 commits from Harley/blender:RotationPrecision into main 2023-05-19 00:25:14 +02:00
Member

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.

Rotation1.gif

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.

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. ![Rotation1.gif](/attachments/1825d07c-b246-4f08-b056-746eb093e4e6) 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.
Harley Acheson added this to the User Interface project 2023-04-07 19:20:33 +02:00
Harley Acheson requested review from Hans Goudey 2023-04-07 19:20:43 +02:00
Hans Goudey reviewed 2023-04-07 19:48:49 +02:00
Hans Goudey left a comment
Member

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?

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?
Hans Goudey requested changes 2023-04-18 22:14:29 +02:00
Hans Goudey left a comment
Member

Just requesting changes pending investigation on whether this same problem applies elsewhere :)

Just requesting changes pending investigation on whether this same problem applies elsewhere :)
Harley Acheson changed title from Fix #106484: Show Rotation with higher precision to WIP: Fix #106484: Show Rotation with higher precision 2023-04-18 23:38:34 +02:00
Harley Acheson changed title from WIP: Fix #106484: Show Rotation with higher precision to Fix #106484: Show all rotations with same precision 2023-04-19 02:49:53 +02:00
Harley Acheson force-pushed RotationPrecision from d462531c18 to 3c720a9121 2023-04-19 02:51:44 +02:00 Compare
Author
Member

@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.

> @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.
Harley Acheson merged commit b34ece48f8 into main 2023-05-19 00:25:14 +02:00
Harley Acheson deleted branch RotationPrecision 2023-05-19 00:25:17 +02:00
Howard Trickey referenced this issue from a commit 2023-05-29 02:51:38 +02:00
Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#106515
No description provided.