Fix #106108: Allow Arrow Increment on Sequence Values #106117

Merged
Harley Acheson merged 2 commits from Harley/blender:SeqFloats into main 2023-03-27 20:27:07 +02:00
Member

Allow clicking the "up" and "down" arrows to increment/decrement by a
frame for Video Sequencer strip Frame Start, Strip Offset Start, and
Strip Offset End.


As #106108 explains, you can't click on the up/down arrows of the frame's start time to change by a frame. This also applies to Strip Offset Start and Strip Offset End:

SeqFloats1.gif

This most likely occurred when the underlying values were changed from integer to float - possibly to work better when displayed as time values.

Unfortunately there is a cruel trick in RNA_def_property_ui_range that is used to specify the UI steps amounts. That function assumes that float values are more likely to be changed in the 0-1 range. Therefore when the property is a float the value for the "step" argument is multiplied by UI_PRECISION_FLOAT_SCALE, which is 0.01f. As a comment says for it, "why? - nobody knows." So our current values of "3" for step here is attempting to change by 0.03 of a frame.

The PR just changes the step value to 100.0f so that it changes by a full frame.

SeqFloats2.gif

Allow clicking the "up" and "down" arrows to increment/decrement by a frame for Video Sequencer strip Frame Start, Strip Offset Start, and Strip Offset End. --- As #106108 explains, you can't click on the up/down arrows of the frame's start time to change by a frame. This also applies to Strip Offset Start and Strip Offset End: ![SeqFloats1.gif](/attachments/df587537-825b-444f-9f8a-17a90ac35eda) This most likely occurred when the underlying values were changed from integer to float - possibly to work better when displayed as time values. Unfortunately there is a cruel trick in `RNA_def_property_ui_range` that is used to specify the UI steps amounts. That function assumes that float values are more likely to be changed in the 0-1 range. Therefore when the property is a float the value for the "step" argument is multiplied by UI_PRECISION_FLOAT_SCALE, which is 0.01f. As a comment says for it, "why? - nobody knows." So our current values of "3" for step here is attempting to change by 0.03 of a frame. The PR just changes the step value to 100.0f so that it changes by a full frame. ![SeqFloats2.gif](/attachments/bb097807-14b0-454c-8cc3-79501da19d8c)
Harley Acheson added 1 commit 2023-03-24 18:20:36 +01:00
51a1a9c147 Fix #106108: Allow Arrow Increment on Sequence Values
Allow clicking the "up" and "down" arrows to increment/decrement by a
frame for Video Sequencer strip Frame Start, Strip Offset Start, and
Strip Offset End.
Harley Acheson requested review from Richard Antalik 2023-03-24 18:21:53 +01:00

Seems like I have been misunderstanding this precision stuff, my goal was to advance value by 1 when tweaking with mouse, which is still the case...

Seems like I have been misunderstanding this precision stuff, my goal was to advance value by 1 when tweaking with mouse, which is still the case...
Richard Antalik approved these changes 2023-03-27 15:51:56 +02:00
Harley Acheson added 1 commit 2023-03-27 20:19:08 +02:00
Harley Acheson merged commit 8ad0935ed6 into main 2023-03-27 20:27:07 +02:00
Harley Acheson deleted branch SeqFloats 2023-03-27 20:27:08 +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#106117
No description provided.