Fix #106801: loading file with overriden NLA in tweak mode loses action #108548

Merged
Nathan Vegdahl merged 4 commits from nathanvegdahl/blender:106801_fix into blender-v3.6-release 2023-06-06 11:11:03 +02:00
Member

The root issue was that the tmpact field of an object's animation
data wasn't exposed to RNA, and thus wasn't getting overridden.

The root issue was that the `tmpact` field of an object's animation data wasn't exposed to RNA, and thus wasn't getting overridden.
Nathan Vegdahl added 1 commit 2023-06-02 16:13:50 +02:00
f5f5f954de Fix #106801: loading file with overriden NLA in tweak mode loses action
The root issue was that the `tmpact` field of an object's animation
data wasn't exposed to RNA, and thus wasn't getting overridden.
Nathan Vegdahl requested review from Bastien Montagne 2023-06-02 16:29:14 +02:00
Nathan Vegdahl requested review from Sybren A. Stüvel 2023-06-02 16:29:27 +02:00
Bastien Montagne approved these changes 2023-06-05 12:20:16 +02:00
Bastien Montagne left a comment
Owner

Generally LGTM, besides trivial to fix notes below.

Generally LGTM, besides trivial to fix notes below.
@ -163,0 +194,4 @@
AnimData *anim_data_dst = (AnimData *)ptr_dst->data;
AnimData *anim_data_src = (AnimData *)ptr_src->data;
anim_data_dst->flag |= anim_data_src->flag & ADT_NLA_EDIT_ON;

This is not correct, it will set the flag if present in source data, but not clear it if not set in source data. ;)

This is not correct, it will set the flag if present in source data, but not clear it if not set in source data. ;)
Author
Member

Ah! Good catch, thanks.

Ah! Good catch, thanks.
@ -1371,2 +1409,4 @@
RNA_def_property_update(prop, NC_ANIMATION | ND_NLA, "rna_AnimData_update"); /* this will do? */
/* Temporary action slot for tweak mode. */
prop = RNA_def_property(srna, "action_tweak_stow", PROP_POINTER, PROP_NONE);

Would try to avoid too uncommon words (not how rare stow is, but I did not know it yet).

Would try to avoid too uncommon words (not how rare `stow` is, but I did not know it yet).

For me, being from a country with a huge shipsailing history, 'stowaway' is quite a known word ;-)

For me, being from a country with a huge shipsailing history, 'stowaway' is quite a known word ;-)
Nathan Vegdahl added 3 commits 2023-06-06 11:06:36 +02:00
dbb4cf7b88 Fix: bug found during PR review.
Incorrect code for setting the bit in one variable to the bit
in another.
1e70dc7071 Fix: better name for the newly exposed `tmpact` property.
"Stow" was a bit obscure for some people.  "Storage" is well
understood.
Nathan Vegdahl merged commit 997ad50b49 into blender-v3.6-release 2023-06-06 11:11:03 +02:00
Nathan Vegdahl deleted branch 106801_fix 2023-06-06 11:11:07 +02:00
Nathan Vegdahl added the
Module
Animation & Rigging
label 2023-06-08 10:31:57 +02:00
Sign in to join this conversation.
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#108548
No description provided.