Commit: e04a10adabea33cf4b3f92e721f86fdbd50c8ac5
Author: Bastien Montagne
Date:   Thu Sep 16 12:40:41 2021 +0200
Branches: master
https://developer.blender.org/rBe04a10adabea33cf4b3f92e721f86fdbd50c8ac5

Cleanup: no need to clear new flags and pointers from whole Main when making a 
single ID local.

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

M       source/blender/editors/interface/interface_templates.c

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

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);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to