blender/source/blender/depsgraph
Christoph Lendenfeld b988d827b6 Anim: world space copy paste frame range
This adds functionality to store world space data in a temporary file
on disk and paste it on other objects.
(technically `AnimTransformable`s, which is objects or bones, but for
simplicity I will be talking about "objects" here)
Compared to the existing functionality this can also copy a
range of frames. Because the data is stored on disk, it is possible
to copy and paste between files.

**Matching Logic**
* When 1 object copied and 1 selected -> paste no matter the naming
* When 1 object copied and 2:n selected -> paste the same data to
all selected
* When 2:n objects copied and 1:n selected -> paste based on naming.
It is possible to paste between objects and bones as long
as the name matches.

**Depsgraph**
* Introduces a new API function `DEG_foreach_dependent_component`
* this function iterates the outgoing links starting at a given ID
* it is used to find the order in which to paste world space transforms
since we have to paste in order of dependency -> dependent
for it to work correctly.

**UI**
Adding a new panel because the new operators are not compatible
with the existing ones. I cannot remove the existing operators because
they provide functionality that I don't yet provide.
To make it clear that they don't work together, they get their own panel.

**Limitations**
* objects with constraints may not end up at the correct world space.
That is expected for limit constraints, but additive constraints would
need to be inverse solved which is a job for another day.
* when the rotation mode is animated, pasting world space animation
will override all keys in the baked range to be the value at the
start of the range.

**Performance**
Testing in a file with 10.000 frames of dense keyframe data.
Copying a single bone:
* Copying ~1.6 seconds
* Pasting ~1.6 seconds

Copying 3 bones of the same armature
* Copying ~1.6 seconds
* Pasting ~4.8 seconds

The extra evaluation required when pasting makes this scale with the
amount of bones we are pasting.

Part of #156579

Pull Request: https://projects.blender.org/blender/blender/pulls/159390
2026-09-17 16:02:26 +02:00
..
intern Anim: world space copy paste frame range 2026-09-17 16:02:26 +02:00
CMakeLists.txt Fix: Avoid crash with incomplete Viewer path 2026-08-06 13:25:04 +02:00
DEG_depsgraph.hh Cleanup: doxy comments, consistent comment blocks & minor corrections 2026-09-05 12:55:45 +00:00
DEG_depsgraph_build.hh Compositor: Track time dependencies in depsgraph 2026-04-10 12:41:28 +02:00
DEG_depsgraph_debug.hh Refactor: Move code in source/ into blender namespace 2026-01-06 20:00:02 +01:00
DEG_depsgraph_light_linking.hh Refactor: Move code in source/ into blender namespace 2026-01-06 20:00:02 +01:00
DEG_depsgraph_physics.hh Refactor: Move code in source/ into blender namespace 2026-01-06 20:00:02 +01:00
DEG_depsgraph_query.hh Anim: world space copy paste frame range 2026-09-17 16:02:26 +02:00
DEG_depsgraph_writeback_sync.hh Refactor: Move code in source/ into blender namespace 2026-01-06 20:00:02 +01:00