[LYN-3078] Removed legacy CMaterial and all related/unused classes.
This commit is contained in:
@@ -25,7 +25,6 @@
|
||||
#include "Settings.h"
|
||||
#include "Viewport.h"
|
||||
#include "LineGizmo.h"
|
||||
#include "Material/MaterialManager.h"
|
||||
#include "Include/IObjectManager.h"
|
||||
#include "Objects/ObjectManager.h"
|
||||
#include "ViewManager.h"
|
||||
@@ -1077,11 +1076,6 @@ XmlNodeRef CEntityObject::Export([[maybe_unused]] const QString& levelPath, XmlN
|
||||
|
||||
objNode->setAttr("Name", GetName().toUtf8().data());
|
||||
|
||||
if (GetMaterial())
|
||||
{
|
||||
objNode->setAttr("Material", GetMaterial()->GetName().toUtf8().data());
|
||||
}
|
||||
|
||||
Vec3 pos = GetPos(), scale = GetScale();
|
||||
Quat rotate = GetRotation();
|
||||
|
||||
@@ -1860,17 +1854,6 @@ void CEntityObject::OnLoadFailed()
|
||||
GetIEditor()->GetErrorReport()->ReportError(err);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
CMaterial* CEntityObject::GetRenderMaterial() const
|
||||
{
|
||||
if (GetMaterial())
|
||||
{
|
||||
return GetMaterial();
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
void CEntityObject::SetHelperScale(float scale)
|
||||
{
|
||||
@@ -1943,21 +1926,6 @@ void CEntityObject::OnContextMenu(QMenu* pMenu)
|
||||
CBaseObject::OnContextMenu(pMenu);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
void CEntityObject::OnMaterialChanged(MaterialChangeFlags change)
|
||||
{
|
||||
if (change & MATERIALCHANGE_SURFACETYPE)
|
||||
{
|
||||
m_statObjValidator.Validate(0, GetRenderMaterial());
|
||||
}
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
QString CEntityObject::GetTooltip() const
|
||||
{
|
||||
return m_statObjValidator.GetDescription();
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
IOpticsElementBasePtr CEntityObject::GetOpticsElement()
|
||||
{
|
||||
@@ -1979,7 +1947,6 @@ void CEntityObject::SetOpticsName(const QString& opticsFullName)
|
||||
{
|
||||
pLight->SetLensOpticsElement(NULL);
|
||||
}
|
||||
SetMaterial(NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user