[Bf-blender-cvs] [c25181be4d8] blender-v3.3-release: UI: Add shift-click hint to library overrides button tooltip

Julian Eisel noreply at git.blender.org
Wed Sep 21 14:27:08 CEST 2022


Commit: c25181be4d8cdc572a0809637f412c8971a123e3
Author: Julian Eisel
Date:   Wed Aug 31 15:03:35 2022 +0200
Branches: blender-v3.3-release
https://developer.blender.org/rBc25181be4d8cdc572a0809637f412c8971a123e3

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

This information was missing and made the feature hard to discover.

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

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 7d27af7220e..25695675194 100644
--- a/source/blender/editors/interface/interface_templates.c
+++ b/source/blender/editors/interface/interface_templates.c
@@ -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));
     }



More information about the Bf-blender-cvs mailing list