From 338cbe4ad68394b90381b4d9a69e880d66381312 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 5 Jul 2019 16:36:01 +1000 Subject: Fix T66453: navigation gizmo doesn't refresh on theme change --- source/blender/editors/space_userpref/userpref_ops.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source') diff --git a/source/blender/editors/space_userpref/userpref_ops.c b/source/blender/editors/space_userpref/userpref_ops.c index 04ef2ed8118..bd3ddf18144 100644 --- a/source/blender/editors/space_userpref/userpref_ops.c +++ b/source/blender/editors/space_userpref/userpref_ops.c @@ -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; -- cgit v1.2.3