UI: Add shift-click hint to library overrides button tooltip

This information was missing and made the feature hard to discover.
This commit is contained in:
Julian Eisel 2022-08-31 15:03:35 +02:00
parent 773241add9
commit c1e342136d
Notes: blender-bot 2023-02-14 11:35:46 +01:00
Referenced by issue #100749, Blender LTS: Maintenance Task 3.3
1 changed files with 16 additions and 14 deletions

View File

@ -1365,20 +1365,22 @@ static void template_ID(const bContext *C,
}
}
else if (ID_IS_OVERRIDE_LIBRARY(id)) {
but = uiDefIconBut(block,
UI_BTYPE_BUT,
0,
ICON_LIBRARY_DATA_OVERRIDE,
0,
0,
UI_UNIT_X,
UI_UNIT_Y,
NULL,
0,
0,
0,
0,
TIP_("Library override of linked data-block, click to make fully local"));
but = uiDefIconBut(
block,
UI_BTYPE_BUT,
0,
ICON_LIBRARY_DATA_OVERRIDE,
0,
0,
UI_UNIT_X,
UI_UNIT_Y,
NULL,
0,
0,
0,
0,
TIP_("Library override of linked data-block, click to make fully local, "
"Shift + Click to clear the library override and toggle if it can be edited"));
UI_but_funcN_set(
but, template_id_cb, MEM_dupallocN(template_ui), POINTER_FROM_INT(UI_ID_OVERRIDE));
}