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
Notes: blender-bot 2023-04-04 07:45:26 +02:00
Referenced by commit 8fd27c152a, Correct T82753 Fix from 979fe4f1be
Referenced by issue #82753, New Add Object tool crashes with specific startup file
1 changed files with 4 additions and 1 deletions

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);
}
}
}