mirror of
https://github.com/blender/blender
synced 2026-11-22 03:45:13 +03:00
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 |
||
|---|---|---|
| .. | ||
| armature_join_with_action_constraints.blend | ||
| chinchilla_mdef.blend | ||
| CtrlObject.blend | ||
| cubesphere.blend | ||
| dolphin.blend | ||
| driver-object-eyes.blend | ||
| dupliverts.blend | ||
| euler-filter.blend | ||
| fcurve-extreme-handles.blend | ||
| fcurve-versioning-291.blend | ||
| IK.blend | ||
| layered_action_versioning_42.blend | ||
| legacy-action-without-idroot.blend | ||
| liboverride-action-slot-libfile.blend | ||
| luxo.blend | ||
| pathJumper.blend | ||
| pydrivers_flap.blend | ||
| remap_action.blend | ||
| rotation_mode_conversion.blend | ||
| symm_test.blend | ||
| timeline.blend | ||
| vertex_groups.blend | ||
| world_space_copy_paste.blend | ||