[LYN-3457] Removed some additional unused methods per PR feedback.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -221,8 +221,6 @@ public:
|
||||
|
||||
IVariable* GetLightVariable(const char* name) const;
|
||||
IOpticsElementBasePtr GetOpticsElement();
|
||||
void SetOpticsElement(IOpticsElementBase* pOptics);
|
||||
void ApplyOptics(const QString& opticsFullName, IOpticsElementBasePtr pOptics);
|
||||
void SetOpticsName(const QString& opticsFullName);
|
||||
|
||||
void PreInitLightProperty();
|
||||
|
||||
Reference in New Issue
Block a user