[Bf-blender-cvs] [40180c3500a] master: Fix crash when reloading with placement tool enabled
Germano Cavalcante
noreply at git.blender.org
Wed Oct 20 14:07:54 CEST 2021
Commit: 40180c3500a8226d1ef3a9a55af9fda2f079f185
Author: Germano Cavalcante
Date: Wed Oct 20 09:07:26 2021 -0300
Branches: master
https://developer.blender.org/rB40180c3500a8226d1ef3a9a55af9fda2f079f185
Fix crash when reloading with placement tool enabled
Paint Cursors are already released at this stage.
===================================================================
M 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;
}
More information about the Bf-blender-cvs
mailing list