Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-07-05 09:36:01 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-07-05 09:36:01 +0300
commit338cbe4ad68394b90381b4d9a69e880d66381312 (patch)
tree555aa71cf5827c71a81c945683c85d696d1bfe6d /source/blender/editors/space_userpref
parent31d762c3a80da99afa4e3ba6dd308746011de6cb (diff)
Fix T66453: navigation gizmo doesn't refresh on theme change
Diffstat (limited to 'source/blender/editors/space_userpref')
-rw-r--r--source/blender/editors/space_userpref/userpref_ops.c3
1 files changed, 3 insertions, 0 deletions
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;