Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2021-03-18 15:42:28 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2021-03-18 17:23:23 +0300
commit7ee365d8c713459d6217c2728f5b796bc3ed241d (patch)
tree9e131e7b281a595e5323c31d6f5f3258b26f473f /source/blender/editors/space_view3d
parent2dd040a3495309566d6b2582e264b281752bcdd5 (diff)
Fix missing view3d updates after recent NC_SPACE notifier filters
Since {rB46aa70cb486d}, using `NC_SPACE | ND_SPACE_VIEW3D` as notifier is restricted to space data as a reference. This was still used though for RNA updates in other places (namely `rna_camera`, `rna_scene`, `rna_animviz`), and passing NULL would automatically set the notifier reference to the owner id. Above commit would happily filter these out, leading to missing refreshes. Now use more specific notifiers (in case of animviz a new `ND_DRAW_ANIMVIZ` was added). This was reported for Camera background images btw. Fixes T86670. Maniphest Tasks: T86670 Differential Revision: https://developer.blender.org/D10758
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r--source/blender/editors/space_view3d/space_view3d.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/space_view3d.c b/source/blender/editors/space_view3d/space_view3d.c
index 3d260a9a05b..d90e4c4743a 100644
--- a/source/blender/editors/space_view3d/space_view3d.c
+++ b/source/blender/editors/space_view3d/space_view3d.c
@@ -921,6 +921,9 @@ static void view3d_main_region_listener(const wmRegionListenerParams *params)
ED_region_tag_redraw(region);
WM_gizmomap_tag_refresh(gzmap);
break;
+ case ND_DRAW_ANIMVIZ:
+ ED_region_tag_redraw(region);
+ break;
}
switch (wmn->action) {
case NA_ADDED: