[Bf-blender-cvs] [1becd16042a] soc-2019-outliner: Outliner: Fix find item at x

Nathan Craddock noreply at git.blender.org
Fri Jul 19 06:16:36 CEST 2019


Commit: 1becd16042adff9d29306f3b9748c68c7d6e00c3
Author: Nathan Craddock
Date:   Thu Jul 18 11:50:56 2019 -0600
Branches: soc-2019-outliner
https://developer.blender.org/rB1becd16042adff9d29306f3b9748c68c7d6e00c3

Outliner: Fix find item at x

Now that the icons are displayed for the entire subtree, the
condition to not look past the cursor X position caused errors.
Removed and the function behaves as expected.

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

M	source/blender/editors/space_outliner/outliner_utils.c

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

diff --git a/source/blender/editors/space_outliner/outliner_utils.c b/source/blender/editors/space_outliner/outliner_utils.c
index c2dd9100dc4..195b9ea7bab 100644
--- a/source/blender/editors/space_outliner/outliner_utils.c
+++ b/source/blender/editors/space_outliner/outliner_utils.c
@@ -69,7 +69,7 @@ static TreeElement *outliner_find_item_at_x_in_row_recursive(const TreeElement *
 
   bool over_element = false;
 
-  while (child_te && view_co_x >= child_te->xs) {
+  while (child_te) {
     over_element = (view_co_x > child_te->xs) && (view_co_x < child_te->xend);
     if ((child_te->flag & TE_ICONROW) && over_element) {
       return child_te;



More information about the Bf-blender-cvs mailing list