Fix T69610: Outliner doesn't update for text new and unlink

Redraw the outliner when text data-blocks are created and unlinked. This
also fixes a crash when unlinking.
This commit is contained in:
Nathan Craddock 2019-09-19 08:47:39 -06:00
parent fb09d229dd
commit 2480c9236f
Notes: blender-bot 2023-02-14 00:54:09 +01:00
Referenced by issue #69610, Outliner doesn't update text data-block list and crashes on unlinking text
1 changed files with 5 additions and 0 deletions

View File

@ -229,6 +229,11 @@ static void outliner_main_region_listener(wmWindow *UNUSED(win),
ED_region_tag_redraw(ar);
}
break;
case NC_TEXT:
if (ELEM(wmn->action, NA_ADDED, NA_REMOVED)) {
ED_region_tag_redraw(ar);
}
break;
}
}