[Bf-blender-cvs] [9be7c831f67] master: Fix: Reset to the default theme not auto-saved

Dalai Felinto noreply at git.blender.org
Tue May 21 20:35:04 CEST 2019


Commit: 9be7c831f67bce4a23de96de651f0f7a8975a690
Author: Dalai Felinto
Date:   Tue May 21 11:26:47 2019 -0300
Branches: master
https://developer.blender.org/rB9be7c831f67bce4a23de96de651f0f7a8975a690

Fix: Reset to the default theme not auto-saved

T64679 mention a desire for a solution that is not in a per-case basis.
However until then we are still better off with this working then not.

Specially since changing individual theme elements works, while reset
theme was not working.

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

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 a67e6c27acb..04ef2ed8118 100644
--- a/source/blender/editors/space_userpref/userpref_ops.c
+++ b/source/blender/editors/space_userpref/userpref_ops.c
@@ -48,7 +48,7 @@ static int reset_default_theme_exec(bContext *C, wmOperator *UNUSED(op))
   UI_theme_init_default();
   UI_style_init_default();
   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