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:
authorBastien Montagne <montagne29@wanadoo.fr>2017-11-07 12:59:40 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2017-11-07 17:17:59 +0300
commit731e848cffd9c1be2e0d0749999c1fcd6e8da9e5 (patch)
treec7c2c605ed4ada80eac16cf258597cb62c4ba247 /source/blender/editors/interface/interface.c
parent91af8f2ae2b5238839b57eaf74b0f950259ec57a (diff)
parentd60a1c30956ae84e0adc1ca0ceb67a504ab0be9a (diff)
Merge blender2.8 branch.
Means that from now on, we work based on blender2.8, no more master! Conflicts: source/blender/blenloader/intern/readfile.c source/blender/blenloader/intern/writefile.c source/blender/depsgraph/intern/builder/deg_builder_nodes.cc source/blender/editors/interface/interface_ops.c source/blender/makesdna/DNA_ID.h source/blender/makesrna/intern/rna_ID.c
Diffstat (limited to 'source/blender/editors/interface/interface.c')
-rw-r--r--source/blender/editors/interface/interface.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c
index 234355c8581..fbdd48d42a7 100644
--- a/source/blender/editors/interface/interface.c
+++ b/source/blender/editors/interface/interface.c
@@ -1216,6 +1216,20 @@ static void ui_menu_block_set_keymaps(const bContext *C, uiBlock *block)
}
}
+void ui_but_override_flag(uiBut *but)
+{
+ bool is_overridden;
+
+ RNA_property_override_status(&but->rnapoin, but->rnaprop, but->rnaindex, NULL, &is_overridden, NULL, NULL);
+
+ if (is_overridden) {
+ but->flag |= UI_BUT_OVERRIDEN;
+ }
+ else {
+ but->flag &= ~UI_BUT_OVERRIDEN;
+ }
+}
+
void UI_block_update_from_old(const bContext *C, uiBlock *block)
{
uiBut *but_old;
@@ -1280,6 +1294,7 @@ void UI_block_end_ex(const bContext *C, uiBlock *block, const int xy[2], int r_x
}
ui_but_anim_flag(but, (scene) ? scene->r.cfra : 0.0f);
+ ui_but_override_flag(but);
}