diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-08-07 11:38:20 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-08-10 18:53:00 +0300 |
commit | 74016d73dbebd8c8a0e1aed70295d1a09037d7eb (patch) | |
tree | f21c0f5f22452072b2c97a0a11aa70cb18d0bd6f /source/blender/editors/space_outliner/outliner_dragdrop.c | |
parent | 9e83283f7312c565e32c68bb544177bbfec7ceb2 (diff) |
WM: drag and drop poll functions can now specify a custom tooltip.
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_dragdrop.c')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_dragdrop.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/editors/space_outliner/outliner_dragdrop.c b/source/blender/editors/space_outliner/outliner_dragdrop.c index f37cd7fa5e4..c53a431a017 100644 --- a/source/blender/editors/space_outliner/outliner_dragdrop.c +++ b/source/blender/editors/space_outliner/outliner_dragdrop.c @@ -107,7 +107,7 @@ static TreeElement *outliner_dropzone_find(const SpaceOops *soops, const float f /* ******************** Parent Drop Operator *********************** */ -static bool parent_drop_poll(bContext *C, wmDrag *drag, const wmEvent *event) +static bool parent_drop_poll(bContext *C, wmDrag *drag, const wmEvent *event, const char **UNUSED(tooltip)) { ARegion *ar = CTX_wm_region(C); SpaceOops *soops = CTX_wm_space_outliner(C); @@ -367,7 +367,7 @@ static bool parenting_poll(bContext *C) /* ******************** Parent Clear Operator *********************** */ -static bool parent_clear_poll(bContext *C, wmDrag *drag, const wmEvent *event) +static bool parent_clear_poll(bContext *C, wmDrag *drag, const wmEvent *event, const char **UNUSED(tooltip)) { ARegion *ar = CTX_wm_region(C); SpaceOops *soops = CTX_wm_space_outliner(C); @@ -456,7 +456,7 @@ void OUTLINER_OT_parent_clear(wmOperatorType *ot) /* ******************** Scene Drop Operator *********************** */ -static bool scene_drop_poll(bContext *C, wmDrag *drag, const wmEvent *event) +static bool scene_drop_poll(bContext *C, wmDrag *drag, const wmEvent *event, const char **UNUSED(tooltip)) { ARegion *ar = CTX_wm_region(C); SpaceOops *soops = CTX_wm_space_outliner(C); @@ -563,7 +563,7 @@ void OUTLINER_OT_scene_drop(wmOperatorType *ot) /* ******************** Material Drop Operator *********************** */ -static bool material_drop_poll(bContext *C, wmDrag *drag, const wmEvent *event) +static bool material_drop_poll(bContext *C, wmDrag *drag, const wmEvent *event, const char **UNUSED(tooltip)) { ARegion *ar = CTX_wm_region(C); SpaceOops *soops = CTX_wm_space_outliner(C); @@ -648,7 +648,7 @@ void OUTLINER_OT_material_drop(wmOperatorType *ot) /* ******************** Collection Drop Operator *********************** */ -static bool collection_drop_poll(bContext *C, wmDrag *drag, const wmEvent *event) +static bool collection_drop_poll(bContext *C, wmDrag *drag, const wmEvent *event, const char **UNUSED(tooltip)) { ARegion *ar = CTX_wm_region(C); SpaceOops *soops = CTX_wm_space_outliner(C); |