Remove I3DEngine CryCommon Interface (#567)
Delete: - I3DEngine - Missions - Time of day - GameEffectsSystem Gem - ImageProcessing Gem - SVOGI Gem - Various other things that don't do anything now that the legacy renderer has been removed.
This commit is contained in:
@@ -32,6 +32,8 @@
|
||||
#include "HitContext.h"
|
||||
#include "Objects/SelectionGroup.h"
|
||||
|
||||
#include <IEntityRenderState.h>
|
||||
#include <IStatObj.h>
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
//! Undo Entity Link
|
||||
@@ -1926,55 +1928,6 @@ void CEntityObject::OnContextMenu(QMenu* pMenu)
|
||||
CBaseObject::OnContextMenu(pMenu);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
IOpticsElementBasePtr CEntityObject::GetOpticsElement()
|
||||
{
|
||||
CDLight* pLight = GetLightProperty();
|
||||
if (pLight == NULL)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
return pLight->GetLensOpticsElement();
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
void CEntityObject::SetOpticsName(const QString& opticsFullName)
|
||||
{
|
||||
if (opticsFullName.isEmpty())
|
||||
{
|
||||
CDLight* pLight = GetLightProperty();
|
||||
if (pLight)
|
||||
{
|
||||
pLight->SetLensOpticsElement(NULL);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
CDLight* CEntityObject::GetLightProperty() const
|
||||
{
|
||||
const PodArray<ILightSource*>* pLightEntities = GetIEditor()->Get3DEngine()->GetLightEntities();
|
||||
if (pLightEntities == NULL)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
for (int i = 0, iLightSize(pLightEntities->Count()); i < iLightSize; ++i)
|
||||
{
|
||||
ILightSource* pLightSource = pLightEntities->GetAt(i);
|
||||
if (pLightSource == NULL)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
CDLight& lightProperty = pLightSource->GetLightProperties();
|
||||
if (GetName() != lightProperty.m_sName)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
return &lightProperty;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
void CEntityObject::PreInitLightProperty()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user