[Bf-blender-cvs] [c3048070999] master: Fix compositor backdrop gizmo refresh problem when toggling sidebar
Julian Eisel
noreply at git.blender.org
Thu Jul 8 13:08:29 CEST 2021
Commit: c30480709999fc2796d616dc4ff44686d2fdfb67
Author: Julian Eisel
Date: Thu Jul 8 13:05:33 2021 +0200
Branches: master
https://developer.blender.org/rBc30480709999fc2796d616dc4ff44686d2fdfb67
Fix compositor backdrop gizmo refresh problem when toggling sidebar
The backdrop image gizmo was not following the backdrop image, it
needs to be refreshed whenever the view changes. The region init
callback is executed whenever the region size changes, so that should be
a reliable place to do that.
Reported as part of T87591.
===================================================================
M source/blender/editors/space_node/space_node.c
===================================================================
diff --git a/source/blender/editors/space_node/space_node.c b/source/blender/editors/space_node/space_node.c
index d7e16dd69f1..68ba21201d0 100644
--- a/source/blender/editors/space_node/space_node.c
+++ b/source/blender/editors/space_node/space_node.c
@@ -651,6 +651,10 @@ static void node_main_region_init(wmWindowManager *wm, ARegion *region)
lb = WM_dropboxmap_find("Node Editor", SPACE_NODE, RGN_TYPE_WINDOW);
WM_event_add_dropbox_handler(®ion->handlers, lb);
+
+ /* The backdrop image gizmo needs to change together with the view. So always refresh gizmos on
+ * region size changes. */
+ WM_gizmomap_tag_refresh(region->gizmo_map);
}
static void node_main_region_draw(const bContext *C, ARegion *region)
More information about the Bf-blender-cvs
mailing list