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
This commit is contained in:
parent
4fd3d96f46
commit
b4a2096415
Notes:
blender-bot
2023-06-12 00:52:52 +02:00
Referenced by commit e97443478e
, Fix T102797: Unlinking an Orphan Action crashes
Referenced by issue #102797, Regression: Unlinking an Orphan Action Crashes Blender
Referenced by issue #95679, Unlinking an animation action via the outliner still animates object in viewport
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue