[Bf-blender-cvs] [7bd3762b7cf] master: UI: Minor tweaks to IDTemplate operations.

Bastien Montagne noreply at git.blender.org
Tue Mar 8 14:57:54 CET 2022


Commit: 7bd3762b7cfc13336b08ac5915e21f1842b7ba24
Author: Bastien Montagne
Date:   Tue Mar 8 14:57:09 2022 +0100
Branches: master
https://developer.blender.org/rB7bd3762b7cfc13336b08ac5915e21f1842b7ba24

UI: Minor tweaks to IDTemplate operations.

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

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 32b3bb5e926..43968e2c986 100644
--- a/source/blender/editors/interface/interface_templates.c
+++ b/source/blender/editors/interface/interface_templates.c
@@ -686,7 +686,7 @@ static void template_id_cb(bContext *C, void *arg_litem, void *arg_event)
         idptr = RNA_property_pointer_get(&template_ui->ptr, template_ui->prop);
         RNA_property_pointer_set(&template_ui->ptr, template_ui->prop, idptr, NULL);
         RNA_property_update(C, &template_ui->ptr, template_ui->prop);
-        undo_push_label = "Override Data-Block";
+        undo_push_label = "Make Local";
       }
       break;
     case UI_ID_ALONE:
@@ -1004,7 +1004,7 @@ static void template_ID(const bContext *C,
       UI_but_flag_enable(but, UI_BUT_REDALERT);
     }
 
-    if (id->lib) {
+    if (ID_IS_LINKED(id)) {
       if (id->tag & LIB_TAG_INDIRECT) {
         but = uiDefIconBut(block,
                            UI_BTYPE_BUT,



More information about the Bf-blender-cvs mailing list