From b4a2096415d97c68182f47f07962f2809bab4578 Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Fri, 11 Feb 2022 14:00:44 +0100 Subject: 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 --- source/blender/editors/space_outliner/outliner_tools.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/editors/space_outliner') 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), -- cgit v1.2.3