diff options
author | Bastien Montagne <bastien@blender.org> | 2022-03-08 16:57:09 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2022-03-08 16:57:47 +0300 |
commit | 7bd3762b7cfc13336b08ac5915e21f1842b7ba24 (patch) | |
tree | 234e1a309743704bd0be9e254467b4e9eebec983 /source/blender/editors | |
parent | bea7d2e22dae905f7b57d3aeb1436e5a959fa976 (diff) |
UI: Minor tweaks to IDTemplate operations.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/interface/interface_templates.c | 4 |
1 files changed, 2 insertions, 2 deletions
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, |