Fix T58670: Spin tool crashes w/o gizmo overlay
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user