[Bf-blender-cvs] [2ff79613a83] blender2.8: Fix T58670: Spin tool crashes w/o gizmo overlay

Campbell Barton noreply at git.blender.org
Tue Dec 4 03:02:56 CET 2018


Commit: 2ff79613a8335c43285c8d1e710d0f9e592dd8ff
Author: Campbell Barton
Date:   Tue Dec 4 13:00:10 2018 +1100
Branches: blender2.8
https://developer.blender.org/rB2ff79613a8335c43285c8d1e710d0f9e592dd8ff

Fix T58670: Spin tool crashes w/o gizmo overlay

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

M	source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c

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

diff --git a/source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c b/source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c
index ec8e012b1a7..00ffc3de861 100644
--- a/source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c
+++ b/source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c
@@ -1039,7 +1039,9 @@ void WM_gizmomap_message_subscribe(
         bContext *C, wmGizmoMap *gzmap, ARegion *ar, struct wmMsgBus *mbus)
 {
 	for (wmGizmoGroup *gzgroup = gzmap->groups.first; gzgroup; gzgroup = gzgroup->next) {
-		if (!WM_gizmo_group_type_poll(C, gzgroup->type)) {
+		if ((gzgroup->init_flag & WM_GIZMOGROUP_INIT_SETUP) == 0 ||
+		    !WM_gizmo_group_type_poll(C, gzgroup->type))
+		{
 			continue;
 		}
 		for (wmGizmo *gz = gzgroup->gizmos.first; gz; gz = gz->next) {



More information about the Bf-blender-cvs mailing list