diff options
author | Julian Eisel <julian@blender.org> | 2020-10-15 21:23:13 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-10-15 21:31:36 +0300 |
commit | d4f94d8a31044af489d4821966854a7bc8975d23 (patch) | |
tree | a4531b783c122238f983936b6175d149f5cbc48c /source/blender/editors/space_outliner/outliner_intern.h | |
parent | 5129e2e042a057a28ea75e4342a664277c74ca34 (diff) |
Cleanup: Refactor lookup for hovered Outliner element for renaming
* Use existing and optimized lookup function, rather than own duplicated logic.
* Move low-level coordinate check into general function, alongside similar
ones.
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_intern.h')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_intern.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/space_outliner/outliner_intern.h b/source/blender/editors/space_outliner/outliner_intern.h index 2e0ea7a481a..382078f006b 100644 --- a/source/blender/editors/space_outliner/outliner_intern.h +++ b/source/blender/editors/space_outliner/outliner_intern.h @@ -286,6 +286,7 @@ void outliner_item_select(struct bContext *C, const short select_flag); bool outliner_item_is_co_over_name_icons(const TreeElement *te, float view_co_x); +bool outliner_item_is_co_over_name(const TreeElement *te, float view_co_x); bool outliner_item_is_co_within_close_toggle(const TreeElement *te, float view_co_x); bool outliner_is_co_within_mode_column(SpaceOutliner *space_outliner, const float view_mval[2]); |