Fix T66453: navigation gizmo doesn't refresh on theme change

This commit is contained in:
Campbell Barton 2019-07-05 16:36:01 +10:00
parent 31d762c3a8
commit 338cbe4ad6
Notes: blender-bot 2023-02-14 03:13:26 +01:00
Referenced by issue #66453, Navigation Gizmo Theme Not Updating to the Default Dark Preset
1 changed files with 3 additions and 0 deletions

View File

@ -26,6 +26,7 @@
#include "DNA_screen_types.h"
#include "BKE_context.h"
#include "BKE_main.h"
#include "BKE_report.h"
#include "RNA_types.h"
@ -45,8 +46,10 @@
static int reset_default_theme_exec(bContext *C, wmOperator *UNUSED(op))
{
Main *bmain = CTX_data_main(C);
UI_theme_init_default();
UI_style_init_default();
WM_reinit_gizmomap_all(bmain);
WM_event_add_notifier(C, NC_WINDOW, NULL);
U.runtime.is_dirty = true;
return OPERATOR_FINISHED;