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:
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
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue