Fix missing animation UI update in the Properties Editor

Animation indicators as well as decorators for properties were not
updating correctly in the following cases:
- NLA pushdown (this was reported in T87681)
- NLA enter/exit tweakmode
- Outliner unlinking/setting action

These actions all send a ND_NLA_ACTCHANGE notifier which the Properties
Editor was not listening to [which is now added].

part of T87681.

Maniphest Tasks: T87681

Differential Revision: https://developer.blender.org/D11040
This commit is contained in:
Philipp Oeser 2021-04-21 17:26:18 +02:00
parent 5f6033e091
commit 0ae23636e7
Notes: blender-bot 2023-02-14 06:05:22 +01:00
Referenced by issue #87681, UI bugs in NLA Editor and Action Editor
1 changed files with 3 additions and 0 deletions

View File

@ -811,6 +811,9 @@ static void buttons_area_listener(const wmSpaceTypeListenerParams *params)
break;
case NC_ANIMATION:
switch (wmn->data) {
case ND_NLA_ACTCHANGE:
ED_area_tag_redraw(area);
break;
case ND_KEYFRAME:
if (ELEM(wmn->action, NA_EDITED, NA_ADDED, NA_REMOVED)) {
ED_area_tag_redraw(area);