[LYN-3457] Removed some additional unused methods per PR feedback.

This commit is contained in:
Chris Galvan
2021-04-30 15:05:04 -05:00
parent 2a67584bc9
commit bb180e7b7c
2 changed files with 0 additions and 46 deletions
@@ -1969,50 +1969,6 @@ IOpticsElementBasePtr CEntityObject::GetOpticsElement()
return pLight->GetLensOpticsElement();
}
//////////////////////////////////////////////////////////////////////////
void CEntityObject::SetOpticsElement(IOpticsElementBase* pOptics)
{
CDLight* pLight = GetLightProperty();
if (pLight == NULL)
{
return;
}
pLight->SetLensOpticsElement(pOptics);
SetMaterial(NULL);
}
//////////////////////////////////////////////////////////////////////////
void CEntityObject::ApplyOptics(const QString& opticsFullName, IOpticsElementBasePtr pOptics)
{
if (pOptics == NULL)
{
CDLight* pLight = GetLightProperty();
if (pLight)
{
pLight->SetLensOpticsElement(NULL);
}
SetMaterial(NULL);
}
else
{
int nOpticsIndex(0);
if (!gEnv->pOpticsManager->Load(opticsFullName.toUtf8().data(), nOpticsIndex))
{
IOpticsElementBasePtr pNewOptics = gEnv->pOpticsManager->Create(eFT_Root);
if (!gEnv->pOpticsManager->AddOptics(pNewOptics, opticsFullName.toUtf8().data(), nOpticsIndex))
{
CDLight* pLight = GetLightProperty();
if (pLight)
{
pLight->SetLensOpticsElement(NULL);
SetMaterial(NULL);
}
return;
}
}
}
}
//////////////////////////////////////////////////////////////////////////
void CEntityObject::SetOpticsName(const QString& opticsFullName)
{