Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGermano Cavalcante <germano.costa@ig.com.br>2021-10-20 15:07:26 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2021-10-20 15:07:41 +0300
commit40180c3500a8226d1ef3a9a55af9fda2f079f185 (patch)
tree88aba846e194d333623e45002c0f27d72075ba2b /source/blender/editors/space_view3d/view3d_cursor_snap.c
parentba4e227def13b4b953775ff4a2fd9c154bb07751 (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.c2
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;
}