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:
authorGermano Cavalcante <germano.costa@ig.com.br>2021-03-30 22:10:58 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2021-03-30 22:10:58 +0300
commit54d7dea283360a8a4f46733feb7b3ec731eafafc (patch)
tree7968d4f38a9686fc9648cb5acc9178cd399e9a1a /source/blender/editors
parent67b40f829e29ce7006de30ebcc75cf8ef82da269 (diff)
Fix: buttons whose property contains an 'owner_id' ignore rna undo check
Introduced in rBce462fa1 but harmless since curretly only `StructRNA` without `owner_id` have the `STRUCT_UNDO` flag cleared. So this commit does not bring any functional changes but it will be useful for {D10695}.
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/interface/interface.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c
index 29d26359c8b..6caee42ac33 100644
--- a/source/blender/editors/interface/interface.c
+++ b/source/blender/editors/interface/interface.c
@@ -1038,7 +1038,6 @@ static bool ui_but_is_rna_undo(const uiBut *but)
if (ID_CHECK_UNDO(id) == false) {
return false;
}
- return true;
}
if (but->rnapoin.type && !RNA_struct_undo_check(but->rnapoin.type)) {
return false;