Fix #117191: Crash using the Extrude tool and Snap Base #117194

Merged
Pratik Borhade merged 1 commits from PratikPB2123/blender:117191-snap-base into main 2024-01-17 12:28:23 +01:00
1 changed files with 3 additions and 1 deletions

View File

@ -237,7 +237,9 @@ void transform_mode_snap_source_init(TransInfo *t, wmOperator * /*op*/)
const wmEvent *event = CTX_wm_window(t->context)->eventstate;
# ifdef RESET_TRANSFORMATION
wmGizmoFnModal modal_fn = gz->custom_modal ? gz->custom_modal : gz->type->modal;
modal_fn(t->context, gz, event, eWM_GizmoFlagTweak(0));
if (modal_fn) {
modal_fn(t->context, gz, event, eWM_GizmoFlagTweak(0));
}
# endif
WM_gizmo_modal_set_while_modal(t->region->gizmo_map, t->context, nullptr, event);