diff options
author | Julian Eisel <julian@blender.org> | 2022-03-09 17:22:35 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2022-03-09 17:23:51 +0300 |
commit | 8e3a58578a312c95f49b8d27ba4b35072772c4ef (patch) | |
tree | 694cceeb21541a37ebc1aaeebf2abc57eb0f57a5 /source/blender/editors/space_outliner/outliner_utils.cc | |
parent | c4d3d104017c79c06127eadf30432b90c2875f3a (diff) |
Outliner: Correct check for element culling
I don't see a reason to use 2x the element height for the "in-view"
checks. That seems incorrect (although shouldn't cause issues). So
remove that, I don't expect behavior changes.
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_utils.cc')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_utils.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_outliner/outliner_utils.cc b/source/blender/editors/space_outliner/outliner_utils.cc index 15a7a3bec15..556f87617f6 100644 --- a/source/blender/editors/space_outliner/outliner_utils.cc +++ b/source/blender/editors/space_outliner/outliner_utils.cc @@ -388,7 +388,7 @@ bool outliner_is_element_visible(const TreeElement *te) bool outliner_is_element_in_view(const TreeElement *te, const View2D *v2d) { - return ((te->ys + 2 * UI_UNIT_Y) >= v2d->cur.ymin) && (te->ys <= v2d->cur.ymax); + return ((te->ys + UI_UNIT_Y) >= v2d->cur.ymin) && (te->ys <= v2d->cur.ymax); } bool outliner_item_is_co_over_name_icons(const TreeElement *te, float view_co_x) |