diff options
author | Nathan Craddock <nzcraddock@gmail.com> | 2020-11-26 23:30:31 +0300 |
---|---|---|
committer | Nathan Craddock <nzcraddock@gmail.com> | 2020-11-27 06:37:21 +0300 |
commit | ab4654cdfe8f393d70426456a29c3ae0bfc4ac03 (patch) | |
tree | 4ffccc5a2e770c70a7c8ce6b607f61ccb218319d /source/blender/editors/space_outliner/outliner_intern.h | |
parent | 1709bc51643d57278063562389519705f331a2c0 (diff) |
Cleanup: Move logic to `outliner_find_item_at_x_in_row`
Move the logic for determining if the item at a given x position is an
icon into the function. This is used for determining selection over an
icon, and will be used in a later commit for checking for hover over an
icon. No functional changes.
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_intern.h')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_intern.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/space_outliner/outliner_intern.h b/source/blender/editors/space_outliner/outliner_intern.h index 5bcb7af1a17..40e83291322 100644 --- a/source/blender/editors/space_outliner/outliner_intern.h +++ b/source/blender/editors/space_outliner/outliner_intern.h @@ -515,9 +515,10 @@ TreeElement *outliner_find_item_at_y(const SpaceOutliner *space_outliner, const ListBase *tree, float view_co_y); TreeElement *outliner_find_item_at_x_in_row(const SpaceOutliner *space_outliner, - const TreeElement *parent_te, + TreeElement *parent_te, float view_co_x, - bool *row_merged); + bool *row_merged, + bool *r_is_over_icon); TreeElement *outliner_find_tse(struct SpaceOutliner *space_outliner, const TreeStoreElem *tse); TreeElement *outliner_find_tree_element(ListBase *lb, const TreeStoreElem *store_elem); TreeElement *outliner_find_parent_element(ListBase *lb, |