Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <eiseljulian@gmail.com>2017-03-02 19:11:09 +0300
committerJulian Eisel <eiseljulian@gmail.com>2017-03-02 19:15:30 +0300
commit0322700d875a1d518a730512531a881f1278124b (patch)
treeb668e69e366d6621256603c3ef7f8dc4219ab3af /source/blender/editors/space_outliner/outliner_utils.c
parent146a88dd60aa20b526ecae2f3f4c2512e1f4d4f0 (diff)
Get UI ready for using drag & drop to nest a collection into another one
Nothing happen yet when it's supposed to insert the collection into another one, that part will be handled by @dfelinto. See gif for demo of how it works UI wise: {F500337} Also fixed off-by-one error in utility function.
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_utils.c')
-rw-r--r--source/blender/editors/space_outliner/outliner_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_outliner/outliner_utils.c b/source/blender/editors/space_outliner/outliner_utils.c
index 0e3a4e89fdf..f123b240efc 100644
--- a/source/blender/editors/space_outliner/outliner_utils.c
+++ b/source/blender/editors/space_outliner/outliner_utils.c
@@ -49,7 +49,7 @@ TreeElement *outliner_find_item_at_y(const SpaceOops *soops, const ListBase *tre
{
for (TreeElement *te_iter = tree->first; te_iter; te_iter = te_iter->next) {
if (view_co_y < (te_iter->ys + UI_UNIT_Y)) {
- if (view_co_y > te_iter->ys) {
+ if (view_co_y >= te_iter->ys) {
/* co_y is inside this element */
return te_iter;
}