Fix T104353: Crash on opening sculpting template
`t->region` was `NULL`. It can happen depending on the context. Caused by rB19b63b932d2b.
This commit is contained in:
parent
9ad3a85f8b
commit
7beb487e9a
Notes:
blender-bot
2023-02-13 13:25:54 +01:00
Referenced by issue #104353, Regression: Crash on opening sculpting template
|
@ -2688,7 +2688,7 @@ static wmGizmoGroup *gizmogroup_xform_find(TransInfo *t)
|
|||
|
||||
void transform_gizmo_3d_model_from_constraint_and_mode_init(TransInfo *t)
|
||||
{
|
||||
wmGizmo *gizmo_modal_current = WM_gizmomap_get_modal(t->region->gizmo_map);
|
||||
wmGizmo *gizmo_modal_current = t->region ? WM_gizmomap_get_modal(t->region->gizmo_map) : NULL;
|
||||
if (!gizmo_modal_current || !ELEM(gizmo_modal_current->parent_gzgroup->type,
|
||||
g_GGT_xform_gizmo,
|
||||
g_GGT_xform_gizmo_context)) {
|
||||
|
|
Loading…
Reference in New Issue