diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2022-02-11 16:00:44 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2022-04-12 12:16:45 +0300 |
commit | b4a2096415d97c68182f47f07962f2809bab4578 (patch) | |
tree | 31deb07306aa6c090baea1622d032cbb4fb90556 /source/blender/editors/space_outliner | |
parent | 4fd3d96f46ea4d9f30cdd9d0bc957c776b6f4e83 (diff) |
Fix T95679: Outliner 'Unlink' directly on action misses DEG update
Animation would still play in the viewport.
There are two ways to unlink an action from the Outliner:
[1] `Unlink Action` on the Animation Data context menu.
This does `outliner_do_data_operation` / `unlinkact_animdata_fn` and has
the correct DEG update.
[2] `Unlink` on the Action context menu
This does `outliner_do_libdata_operation` / `unlink_action_fn` and was
missing the DEG update.
Now add the missing DEG update to the second case.
Maniphest Tasks: T95679
Differential Revision: https://developer.blender.org/D14089
Diffstat (limited to 'source/blender/editors/space_outliner')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_tools.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/space_outliner/outliner_tools.cc b/source/blender/editors/space_outliner/outliner_tools.cc index 67bc0e91053..65b4ba15369 100644 --- a/source/blender/editors/space_outliner/outliner_tools.cc +++ b/source/blender/editors/space_outliner/outliner_tools.cc @@ -217,6 +217,7 @@ static void unlink_action_fn(bContext *C, { /* just set action to nullptr */ BKE_animdata_set_action(CTX_wm_reports(C), tsep->id, nullptr); + DEG_id_tag_update(tsep->id, ID_RECALC_ANIMATION); } static void unlink_material_fn(bContext *UNUSED(C), |