Fix error from recent refactor failing to save user data on exit

The check from [0] flipped background mode check.

[0]: c803ddab29
This commit is contained in:
Campbell Barton
2023-05-30 22:58:31 +10:00
parent ec7c1a6e0a
commit d3d91b79e0
@@ -713,7 +713,7 @@ void WM_exit_ex(bContext *C, const bool do_python, const bool do_user_exit_actio
void WM_exit(bContext *C, const int exit_code)
{
const bool do_user_exit_actions = G.background ? (exit_code == EXIT_SUCCESS) : false;
const bool do_user_exit_actions = G.background ? false : (exit_code == EXIT_SUCCESS);
WM_exit_ex(C, true, do_user_exit_actions);
printf("\nBlender quit\n");