diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2021-10-20 15:07:26 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2021-10-20 15:07:41 +0300 |
commit | 40180c3500a8226d1ef3a9a55af9fda2f079f185 (patch) | |
tree | 88aba846e194d333623e45002c0f27d72075ba2b /source/blender/editors/space_view3d/view3d_cursor_snap.c | |
parent | ba4e227def13b4b953775ff4a2fd9c154bb07751 (diff) |
Fix crash when reloading with placement tool enabled
Paint Cursors are already released at this stage.
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_cursor_snap.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_cursor_snap.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |