Fix T82753: Crash using add-object tool when gizmos are disabled

This commit is contained in:
Campbell Barton
2020-11-16 18:23:17 +11:00
parent 64ab084ca5
commit 979fe4f1be

View File

@@ -763,7 +763,10 @@ static void view3d_interactive_add_begin(bContext *C, wmOperator *op, const wmEv
ipd->snap_gizmo = gzgroup->gizmos.first;
}
preview_plane_cursor_visible_set(gzgroup, false);
/* Can be NULL when gizmos are disabled. */
if (gzgroup->customdata != NULL) {
preview_plane_cursor_visible_set(gzgroup, false);
}
}
}