Commit: 2480c9236fd43907b81053616b23c155970a9cca
Author: Nathan Craddock
Date:   Thu Sep 19 08:47:39 2019 -0600
Branches: master
https://developer.blender.org/rB2480c9236fd43907b81053616b23c155970a9cca

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.

===================================================================

M       source/blender/editors/space_outliner/space_outliner.c

===================================================================

diff --git a/source/blender/editors/space_outliner/space_outliner.c 
b/source/blender/editors/space_outliner/space_outliner.c
index 79880c68120..68eea4f278b 100644
--- a/source/blender/editors/space_outliner/space_outliner.c
+++ b/source/blender/editors/space_outliner/space_outliner.c
@@ -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;
   }
 }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to