Fix Windows Tablet API preference not being used

It was sometimes set before reading preferences, now it's passed to GHOST every
time preferences are read.

Differential Revision: https://developer.blender.org/D5641
This commit is contained in:
Miguel Pozo 2020-04-08 12:16:43 +02:00 committed by Brecht Van Lommel
parent a3c1605581
commit d478cc71dd
3 changed files with 4 additions and 3 deletions

@ -1 +1 @@
Subproject commit 8e6f485cf5b160c425d7da7c743879b20f3d6a96
Subproject commit d348bde0f96809e289b0514c015cafb97f2dcf79

View File

@ -375,6 +375,9 @@ static void wm_init_userdef(Main *bmain)
/* update tempdir from user preferences */
BKE_tempdir_init(U.tempdir);
/* Update tablet API preference. */
WM_init_tablet_api();
}
/* return codes */

View File

@ -1679,8 +1679,6 @@ void wm_ghost_init(bContext *C)
}
GHOST_UseWindowFocus(wm_init_state.window_focus);
WM_init_tablet_api();
}
}