[LYN-3078] Removed legacy CMaterial and all related/unused classes.
This commit is contained in:
@@ -365,10 +365,6 @@ bool CPreviewModelCtrl::Render()
|
||||
}
|
||||
|
||||
_smart_ptr<IMaterial> pMaterial;
|
||||
if (m_pCurrentMaterial)
|
||||
{
|
||||
pMaterial = m_pCurrentMaterial->GetMatInfo();
|
||||
}
|
||||
|
||||
if (m_bPrecacheMaterial)
|
||||
{
|
||||
@@ -430,11 +426,6 @@ bool CPreviewModelCtrl::Render()
|
||||
m_pRenderer->EF_ADDDlight(&m_lights[i], passInfo);
|
||||
}
|
||||
|
||||
if (m_pCurrentMaterial)
|
||||
{
|
||||
m_pCurrentMaterial->DisableHighlightForFrame();
|
||||
}
|
||||
|
||||
if (m_bShowObject)
|
||||
{
|
||||
RenderObject(pMaterial, passInfo);
|
||||
@@ -778,32 +769,6 @@ void CPreviewModelCtrl::SetRotation(bool bEnable)
|
||||
m_bRotate = bEnable;
|
||||
}
|
||||
|
||||
void CPreviewModelCtrl::SetMaterial(CMaterial* pMaterial)
|
||||
{
|
||||
if (pMaterial)
|
||||
{
|
||||
if ((pMaterial->GetFlags() & MTL_FLAG_NOPREVIEW))
|
||||
{
|
||||
m_pCurrentMaterial = 0;
|
||||
if (isVisible())
|
||||
{
|
||||
update();
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
m_pCurrentMaterial = pMaterial;
|
||||
if (isVisible())
|
||||
{
|
||||
update();
|
||||
}
|
||||
}
|
||||
|
||||
CMaterial* CPreviewModelCtrl::GetMaterial()
|
||||
{
|
||||
return m_pCurrentMaterial;
|
||||
}
|
||||
|
||||
void CPreviewModelCtrl::OnEditorNotifyEvent(EEditorNotifyEvent event)
|
||||
{
|
||||
switch (event)
|
||||
|
||||
Reference in New Issue
Block a user