From 40180c3500a8226d1ef3a9a55af9fda2f079f185 Mon Sep 17 00:00:00 2001 From: Germano Cavalcante Date: Wed, 20 Oct 2021 09:07:26 -0300 Subject: Fix crash when reloading with placement tool enabled Paint Cursors are already released at this stage. --- source/blender/editors/space_view3d/view3d_cursor_snap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/space_view3d/view3d_cursor_snap.c') diff --git a/source/blender/editors/space_view3d/view3d_cursor_snap.c b/source/blender/editors/space_view3d/view3d_cursor_snap.c index 06a37703648..9bbd90d2db6 100644 --- a/source/blender/editors/space_view3d/view3d_cursor_snap.c +++ b/source/blender/editors/space_view3d/view3d_cursor_snap.c @@ -879,7 +879,7 @@ static void v3d_cursor_snap_activate(void) static void v3d_cursor_snap_free(void) { SnapCursorDataIntern *data_intern = &g_data_intern; - if (data_intern->handle) { + if (data_intern->handle && G_MAIN->wm.first) { WM_paint_cursor_end(data_intern->handle); data_intern->handle = NULL; } -- cgit v1.2.3