[Bf-blender-cvs] [c8cb79e3094] ui-asset-view-template: Fix 3DView not updating on some NC_ID notifiers.

Bastien Montagne noreply at git.blender.org
Sun Mar 21 16:11:58 CET 2021


Commit: c8cb79e309477065872f7a2189c275abe9b27f8b
Author: Bastien Montagne
Date:   Thu Mar 18 15:28:21 2021 +0100
Branches: ui-asset-view-template
https://developer.blender.org/rBc8cb79e309477065872f7a2189c275abe9b27f8b

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