[Bf-blender-cvs] [736a32e7bf2] blender2.8: Ouliner drag&drop: Correct/increase margin for triggering insert into
Julian Eisel
noreply at git.blender.org
Fri Mar 10 21:07:04 CET 2017
Commit: 736a32e7bf20c8d88116c95674a93447424c60e5
Author: Julian Eisel
Date: Fri Mar 10 21:06:10 2017 +0100
Branches: blender2.8
https://developer.blender.org/rB736a32e7bf20c8d88116c95674a93447424c60e5
Ouliner drag&drop: Correct/increase margin for triggering insert into
===================================================================
M source/blender/editors/space_outliner/outliner_ops.c
===================================================================
diff --git a/source/blender/editors/space_outliner/outliner_ops.c b/source/blender/editors/space_outliner/outliner_ops.c
index 4b0dcb143e6..90d27b09292 100644
--- a/source/blender/editors/space_outliner/outliner_ops.c
+++ b/source/blender/editors/space_outliner/outliner_ops.c
@@ -75,7 +75,7 @@ static void outliner_item_drag_end(TreeElement *dragged_te)
}
static void outliner_item_drag_get_insert_data(
- SpaceOops *soops, ARegion *ar, const wmEvent *event, TreeElement *te_dragged,
+ const SpaceOops *soops, ARegion *ar, const wmEvent *event, TreeElement *te_dragged,
TreeElement **r_te_insert_handle, TreeElementInsertType *r_insert_type)
{
TreeElement *te_hovered;
@@ -109,7 +109,7 @@ static void outliner_item_drag_get_insert_data(
*r_insert_type = TE_INSERT_AFTER;
}
}
- else if (view_mval[1] > (te_hovered->ys + (2 * margin))) {
+ else if (view_mval[1] > (te_hovered->ys + (3 * margin))) {
*r_insert_type = TE_INSERT_BEFORE;
}
else {
More information about the Bf-blender-cvs
mailing list