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