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

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