[Bf-blender-cvs] [07f9a73a8fb] master: Fix 3DView not updating on some NC_ID notifiers.

Bastien Montagne noreply at git.blender.org
Thu Mar 18 15:59:23 CET 2021


Commit: 07f9a73a8fbc02f6488ad04804eea44681762863
Author: Bastien Montagne
Date:   Thu Mar 18 15:28:21 2021 +0100
Branches: master
https://developer.blender.org/rB07f9a73a8fbc02f6488ad04804eea44681762863

Fix 3DView not updating on some NC_ID notifiers.

Outliner uses a lot `NC_ID | NA_EDITED` e.g., which was not caught by
the View3D editor for update.

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

M	source/blender/editors/space_view3d/space_view3d.c

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

diff --git a/source/blender/editors/space_view3d/space_view3d.c b/source/blender/editors/space_view3d/space_view3d.c
index d90e4c4743a..e6916c34a88 100644
--- a/source/blender/editors/space_view3d/space_view3d.c
+++ b/source/blender/editors/space_view3d/space_view3d.c
@@ -1059,7 +1059,7 @@ static void view3d_main_region_listener(const wmRegionListenerParams *params)
       }
       break;
     case NC_ID:
-      if (wmn->action == NA_RENAME) {
+      if (ELEM(wmn->action, NA_RENAME, NA_EDITED, NA_ADDED, NA_REMOVED)) {
         ED_region_tag_redraw(region);
       }
       break;



More information about the Bf-blender-cvs mailing list