Anim: make existing code deal with layered Actions #123424
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
FBX
Interest
Freestyle
Interest
Geometry Nodes
Interest
glTF
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 & 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
Asset System
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline & 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
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#123424
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Existing code that handles Actions needs to be able to deal with layered Actions. This can either mean explicit rejection or operating properly, but a choice has to be made.
BKE_animdata_merge_copy
animdata_copy_id_action
action_idcode_patch_check()
what_does_obaction()
BKE_animdata_fix_paths_rename()
(addressed as part of #127920)BKE_animdata_transfer_by_basepath
/action_move_fcurves_by_basepath
/animdata_move_drivers_by_basepath
act->curves
LISTBASE_FOREACH
).BKE_fcurve_find()
uses listbase looping, but it's used all over the place, so investigating and addressing all call sites has been left for a future PR.BKE_fcurves_filter()
is only used in one place (updateDuplicateActionConstraintSettings()
), but its use-site is complicated and will probably need a PR of it's own to handle properly.grease_pencil_convert_legacy.cc
isn't enough, because it does some custom transferring of fcurves between listbases. Updating that code should probably be a PR of its own.gpencil_bake_animation.cc
there is a functionanimdata_keyframe_list_get()
that loops over the fcurve listbase and is only called fromgpencil_bake_grease_pencil_animation_exec()
. However, the semantics of how it's used in that function aren't immediately obvious, so it should get some special attention from someone who knows what's going on. Therefore leaving it for the future.gpencil_mesh.cc
, with a similar situation. Probably should be handled together.sequencer_paste_animation()
uses the listbase loop, but is also appending to a destination listbase. Needs more special attention.sequencer/intern/animation.cc
,SEQ_fcurves_by_strip_get()
takes a listbase of fcurves and loops over them. However, one of its call sites makes it not completely trivial to just swap out with aSpan<FCurve *>
. So punting on this to be handled in a separate PR.BCAnimationSampler.cpp
,add_keyframes_from()
uses the listbase loop. However, this is a case where we actually want to usefcurves_for_action_slot()
because it's always called in a context specific to an animated ID. I (Nathan) thought it would be straightforward, but 20 minutes later and I had touched a lot of code, and still wasn't quite done. So this probably deserves a PR of its own.act->groups
io/collada/AnimationImporter.cpp
). (#128529)fcurves_path_remove_fix()
and its call sites. (#128252)ED_curve_updateAnimPaths
and its call sites. (#128428)Ref: #120406
Sybren A. Stüvel referenced this issue2024-09-03 13:23:17 +02:00