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 <bastien@blender.org>2021-09-16 13:40:41 +0300
committerBastien Montagne <bastien@blender.org>2021-09-16 15:30:56 +0300
commite04a10adabea33cf4b3f92e721f86fdbd50c8ac5 (patch)
tree5323d175231bab58c210824e6280bb3ae1dfe692 /source/blender/editors/interface
parent27b6636c4525bd051723d30a148c6a037ea169d8 (diff)
Cleanup: no need to clear new flags and pointers from whole Main when making a single ID local.
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r--source/blender/editors/interface/interface_templates.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_templates.c b/source/blender/editors/interface/interface_templates.c
index 9787b101572..0c9eb20af19 100644
--- a/source/blender/editors/interface/interface_templates.c
+++ b/source/blender/editors/interface/interface_templates.c
@@ -674,7 +674,7 @@ static void template_id_cb(bContext *C, void *arg_litem, void *arg_event)
}
else {
if (BKE_lib_id_make_local(bmain, id, 0)) {
- BKE_main_id_newptr_and_tag_clear(bmain);
+ BKE_id_newptr_and_tag_clear(id);
/* Reassign to get proper updates/notifiers. */
idptr = RNA_property_pointer_get(&template_ui->ptr, template_ui->prop);