Fix: make auto-keying reliably key all needed bone channels #124054

Merged
Nathan Vegdahl merged 1 commits from nathanvegdahl/blender:needed_bone_keys_not_inserted into blender-v4.2-release 2024-07-04 10:18:45 +02:00
Member

This is a follow-up to #123998 which fixed autokeying on objects when
the "Only Insert Needed" user preference was enabled. This fixes an
essentially identical bug for auto-keying bones, but also fixes a
different-but-related bug unique to bone keying.

In the first bug the location channel would erroneously not get keyed
sometimes when the "Only Insert Needed" user preference was enabled.
This fixes that by passing in whether more than one bone is being keyed
or not, and using that to accurately determine if location actually
needs to be keyed.

In the second bug, the location channel would erroneously not get keyed
when "Auto IK" was used to transform bones. This fixes that by just
being over-conservative. This unforunately leads to more bones getting
their location channel keyed than needed when Auto IK is used, but this
is better than failing to key needed channels, which was the previous
behavior. I left a comment explaining the situation, along with a TODO
to address this in a more satisfying way in the future.

This is a follow-up to #123998 which fixed autokeying on objects when the "Only Insert Needed" user preference was enabled. This fixes an essentially identical bug for auto-keying bones, but *also* fixes a different-but-related bug unique to bone keying. In the first bug the location channel would erroneously not get keyed sometimes when the "Only Insert Needed" user preference was enabled. This fixes that by passing in whether more than one bone is being keyed or not, and using that to accurately determine if location actually needs to be keyed. In the second bug, the location channel would erroneously not get keyed when "Auto IK" was used to transform bones. This fixes that by just being over-conservative. This unforunately leads to more bones getting their location channel keyed than needed when Auto IK is used, but this is better than *failing* to key needed channels, which was the previous behavior. I left a comment explaining the situation, along with a TODO to address this in a more satisfying way in the future.
Nathan Vegdahl added this to the 4.2 LTS milestone 2024-07-02 17:22:32 +02:00
Nathan Vegdahl added the
Module
Animation & Rigging
label 2024-07-02 17:22:32 +02:00
Nathan Vegdahl added 1 commit 2024-07-02 17:22:43 +02:00
Fix: make auto-keying reliably key all needed bone channels
All checks were successful
buildbot/vexp-code-patch-lint Build done.
buildbot/vexp-code-patch-linux-x86_64 Build done.
buildbot/vexp-code-patch-darwin-x86_64 Build done.
buildbot/vexp-code-patch-darwin-arm64 Build done.
buildbot/vexp-code-patch-windows-amd64 Build done.
buildbot/vexp-code-patch-coordinator Build done.
5626bbb7d4
This is a follow-up to #123998 which fixed autokeying on objects when
the "Only Insert Needed" user preference was enabled. This fixes an
essentially identical bug for auto-keying bones, but *also* fixes a
different-but-related bug unique to bone keying.

In the first bug the location channel would erroneously not get keyed
sometimes when the "Only Insert Needed" user preference was enabled.
This fixes that by passing in whether more than one bone is being keyed
or not, and using that to accurately determine if location actually
needs to be keyed.

In the second bug, the location channel would erroneously not get keyed
when "Auto IK" was used to transform bones. This fixes that by just
being over-conservative. This unforunately leads to more bones getting
their location channel keyed than needed when Auto IK is used, but this
is better than *failing* to key needed channels, which was the previous
behavior. I left a comment explaining the situation, along with a TODO
to address this in a more satisfying way in the future.
Nathan Vegdahl requested review from Christoph Lendenfeld 2024-07-02 17:23:30 +02:00
Christoph Lendenfeld approved these changes 2024-07-04 09:36:46 +02:00
Christoph Lendenfeld left a comment
Member

lgtm!
nice work fixing the auto-ik thing in one go :)

lgtm! nice work fixing the auto-ik thing in one go :)
Author
Member

@blender-bot build

@blender-bot build
Nathan Vegdahl merged commit b31d34033a into blender-v4.2-release 2024-07-04 10:18:45 +02:00
Nathan Vegdahl deleted branch needed_bone_keys_not_inserted 2024-07-04 10:18:49 +02:00
Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
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
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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#124054
No description provided.