Fix #105329: Keyframe handles staying in place when using slider operators #105401

Merged

The issue was that when using the HD_ALIGNED handle type,
Blender would not automatically move the keyframe handles with the key.
Instead one handle would get stuck in place.
To remedy that manually move the keyframe handles in case the type is HD_ALIGNED
This makes it consistent with moving a key with G

The issue was that when using the `HD_ALIGNED` handle type, Blender would not automatically move the keyframe handles with the key. Instead one handle would get stuck in place. To remedy that manually move the keyframe handles in case the type is `HD_ALIGNED` This makes it consistent with moving a key with G
Christoph Lendenfeld added the
Module
Animation & Rigging
label 2023-03-03 13:02:40 +01:00
Christoph Lendenfeld requested review from Sybren A. Stüvel 2023-03-03 13:02:59 +01:00
Christoph Lendenfeld changed title from Fix 105329: Keyframe handles staying in place when using slider operators to Fix #105329: Keyframe handles staying in place when using slider operators 2023-03-03 13:03:28 +01:00
Sybren A. Stüvel approved these changes 2023-03-03 13:07:31 +01:00
@ -229,0 +230,4 @@
{
const float delta = key_y_value - bezt->vec[1][1];
bezt->vec[1][1] = key_y_value;
/* When handle type is HD_ALIGN one handle would get stuck. */

"one handle would get stuck" → "handles get stuck unless we move it along with the key".

It's a bit more generic, but does avoid some questions, like "if you now which handle gets stuck, why move both?", or "why not mention which one?". I think the approach of simply updating both is the right one, so that's why I think the slightly more generic comment is better.

Also it describes the issue, instead of the history of the code.

The rest LGTM, so this can be addressed before merging the PR.

"one handle would get stuck" → "handles get stuck unless we move it along with the key". It's a bit more generic, but does avoid some questions, like "if you now which handle gets stuck, why move both?", or "why not mention which one?". I think the approach of simply updating both is the right one, so that's why I think the slightly more generic comment is better. Also it describes the issue, instead of the history of the code. The rest LGTM, so this can be addressed before merging the PR.
ChrisLend changed target branch from main to blender-v3.5-release 2023-03-03 15:32:43 +01:00
Christoph Lendenfeld force-pushed fix_105329_graph_slider_handles from 15cac4bfb5 to c2a83690b1 2023-03-03 15:40:35 +01:00 Compare
Christoph Lendenfeld added 1 commit 2023-03-03 15:42:44 +01:00
buildbot/vexp-code-patch-coordinator Build done. Details
06f1a62a7d
update comment
Author
Member
@blender-bot ping
Member

pong

pong
Author
Member

@blender-bot build

@blender-bot build
Christoph Lendenfeld merged commit 513d31360f into blender-v3.5-release 2023-03-03 16:41:25 +01:00
Christoph Lendenfeld deleted branch fix_105329_graph_slider_handles 2023-03-03 16:41:27 +01: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
3 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#105401
No description provided.