Fix T58670: Spin tool crashes w/o gizmo overlay

This commit is contained in:
Campbell Barton 2018-12-04 13:00:10 +11:00
parent 1b6a394d86
commit 2ff79613a8
Notes: blender-bot 2023-02-14 11:18:07 +01:00
Referenced by issue #58670, Crash in 2.8 while using the spin tool in edit mode
1 changed files with 3 additions and 1 deletions

View File

@ -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) {