[Bf-blender-cvs] [ef0e84afc67] asset-greasepencil: Create custom Tooltip for GPencil

Antonio Vazquez noreply at git.blender.org
Thu Apr 7 19:18:13 CEST 2022


Commit: ef0e84afc671e6a0bbdee307a60125f122faa87c
Author: Antonio Vazquez
Date:   Thu Apr 7 19:18:07 2022 +0200
Branches: asset-greasepencil
https://developer.blender.org/rBef0e84afc671e6a0bbdee307a60125f122faa87c

Create custom Tooltip for GPencil

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

M	source/blender/editors/space_view3d/space_view3d.c

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

diff --git a/source/blender/editors/space_view3d/space_view3d.c b/source/blender/editors/space_view3d/space_view3d.c
index 9b0103030ef..3f0b84721e7 100644
--- a/source/blender/editors/space_view3d/space_view3d.c
+++ b/source/blender/editors/space_view3d/space_view3d.c
@@ -629,6 +629,14 @@ static char *view3d_object_data_drop_tooltip(bContext *UNUSED(C),
   return BLI_strdup(TIP_("Create object instance from object-data"));
 }
 
+static char *view3d_gpencil_data_drop_tooltip(bContext *UNUSED(C),
+                                              wmDrag *UNUSED(drag),
+                                              const int UNUSED(xy[2]),
+                                              wmDropBox *UNUSED(drop))
+{
+  return BLI_strdup(TIP_("Add strokes to active object"));
+}
+
 static bool view3d_ima_drop_poll(bContext *C, wmDrag *drag, const wmEvent *event)
 {
   if (ED_region_overlap_isect_any_xy(CTX_wm_area(C), event->xy)) {
@@ -954,7 +962,7 @@ static void view3d_dropboxes(void)
                  view3d_gpencil_drop_poll,
                  view3d_id_drop_copy_with_type,
                  WM_drag_free_imported_drag_ID,
-                 view3d_object_data_drop_tooltip);
+                 view3d_gpencil_data_drop_tooltip);
 }
 
 static void view3d_widgets(void)



More information about the Bf-blender-cvs mailing list