[Bf-blender-cvs] [b4a2096415d] master: Fix T95679: Outliner 'Unlink' directly on action misses DEG update
Philipp Oeser
noreply at git.blender.org
Tue Apr 12 11:19:31 CEST 2022
Commit: b4a2096415d97c68182f47f07962f2809bab4578
Author: Philipp Oeser
Date: Fri Feb 11 14:00:44 2022 +0100
Branches: master
https://developer.blender.org/rBb4a2096415d97c68182f47f07962f2809bab4578
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
===================================================================
M source/blender/editors/space_outliner/outliner_tools.cc
===================================================================
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),
More information about the Bf-blender-cvs
mailing list