[Bf-blender-cvs] [2480c9236fd] master: Fix T69610: Outliner doesn't update for text new and unlink

Nathan Craddock noreply at git.blender.org
Thu Sep 19 17:14:45 CEST 2019


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;
   }
 }



More information about the Bf-blender-cvs mailing list