From 31fd5bbc08234686cf798a93a18e0bb73615d1bf Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 1 Sep 2023 22:27:30 +0200 Subject: rename entity -> object --- editor/camera.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor/camera.cpp') diff --git a/editor/camera.cpp b/editor/camera.cpp index 77e3a149..48a783cc 100644 --- a/editor/camera.cpp +++ b/editor/camera.cpp @@ -113,7 +113,7 @@ object_id app::object_at_cursor() Vector2 min(rect.m_min[0], rect.m_min[1]), max(rect.m_max[0], rect.m_max[1]); if (t0 >= min && t0 <= max) { - if (auto e_ = world.find_entity(x.data); + if (auto e_ = world.find_object(x.data); e_ && Vector2ui(e_->bbox_size).product() != 0) { ret = x.data; -- cgit v1.2.3