[Bf-blender-cvs] [338cbe4ad68] master: Fix T66453: navigation gizmo doesn't refresh on theme change

Campbell Barton noreply at git.blender.org
Fri Jul 5 08:38:10 CEST 2019


Commit: 338cbe4ad68394b90381b4d9a69e880d66381312
Author: Campbell Barton
Date:   Fri Jul 5 16:36:01 2019 +1000
Branches: master
https://developer.blender.org/rB338cbe4ad68394b90381b4d9a69e880d66381312

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

===================================================================

M	source/blender/editors/space_userpref/userpref_ops.c

===================================================================

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;



More information about the Bf-blender-cvs mailing list