Removed duplicated code into SceneRaycaster
This commit is contained in:
parent
5df2713010
commit
083df84009
1 changed files with 0 additions and 29 deletions
|
@ -228,35 +228,6 @@ int SceneRaycaster::base_id(EType type)
|
|||
return -1;
|
||||
}
|
||||
|
||||
#if ENABLE_RAYCAST_PICKING_DEBUG
|
||||
size_t SceneRaycaster::active_beds_count() const
|
||||
{
|
||||
size_t count = 0;
|
||||
for (const auto& item : m_bed) {
|
||||
if (item->is_active()) ++count;
|
||||
}
|
||||
return count;
|
||||
}
|
||||
|
||||
size_t SceneRaycaster::active_volumes_count() const
|
||||
{
|
||||
size_t count = 0;
|
||||
for (const auto& item : m_volumes) {
|
||||
if (item->is_active()) ++count;
|
||||
}
|
||||
return count;
|
||||
}
|
||||
|
||||
size_t SceneRaycaster::active_gizmos_count() const
|
||||
{
|
||||
size_t count = 0;
|
||||
for (const auto& item : m_gizmos) {
|
||||
if (item->is_active()) ++count;
|
||||
}
|
||||
return count;
|
||||
}
|
||||
#endif // ENABLE_RAYCAST_PICKING_DEBUG
|
||||
|
||||
int SceneRaycaster::encode_id(EType type, int id) { return base_id(type) + id; }
|
||||
int SceneRaycaster::decode_id(EType type, int id) { return id - base_id(type); }
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue