Sp3 141 camera system #108
|
@ -30,9 +30,14 @@ namespace SHADE
|
||||||
void SHCameraDirector::UpdateMatrix() noexcept
|
void SHCameraDirector::UpdateMatrix() noexcept
|
||||||
{
|
{
|
||||||
if (mainCameraEID == MAX_EID)
|
if (mainCameraEID == MAX_EID)
|
||||||
|
{
|
||||||
|
auto& dense = SHComponentManager::GetDense<SHCameraComponent>();
|
||||||
|
if (dense.size() == 0)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
mainCameraEID = dense[0].GetEID();
|
||||||
|
}
|
||||||
SHCameraComponent* camComponent = SHComponentManager::GetComponent_s<SHCameraComponent>(mainCameraEID);
|
SHCameraComponent* camComponent = SHComponentManager::GetComponent_s<SHCameraComponent>(mainCameraEID);
|
||||||
if (!camComponent)
|
if (!camComponent)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue