[LYN-3078] Removed legacy CMaterial and all related/unused classes.
This commit is contained in:
@@ -35,7 +35,6 @@ class CUndoBaseObject;
|
||||
class CObjectManager;
|
||||
class CGizmo;
|
||||
class CObjectArchive;
|
||||
class CMaterial;
|
||||
class CEdGeometry;
|
||||
struct SSubObjSelectionModifyContext;
|
||||
struct SRayHitInfo;
|
||||
@@ -135,13 +134,6 @@ enum ObjectEditFlags
|
||||
OBJECT_COLLAPSE_OBJECTPANEL = 0x004
|
||||
};
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
enum MaterialChangeFlags
|
||||
{
|
||||
MATERIALCHANGE_SURFACETYPE = 0x001,
|
||||
MATERIALCHANGE_ALL = 0xFFFFFFFF,
|
||||
};
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
//! Return values from CBaseObject::MouseCreateCallback method.
|
||||
enum MouseCreateResult
|
||||
@@ -554,22 +546,6 @@ public:
|
||||
//! Remove event listener callback.
|
||||
void RemoveEventListener(EventListener* listener);
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
//! Material handling for this base object.
|
||||
//! Override in derived classes.
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
//! Assign new material to this object.
|
||||
virtual void SetMaterial(CMaterial* mtl);
|
||||
//! Assign new material to this object as a material name.
|
||||
virtual void SetMaterial(const QString& materialName);
|
||||
//! Get assigned material for this object.
|
||||
virtual CMaterial* GetMaterial() const { return m_pMaterial; };
|
||||
// Get actual rendering material for this object.
|
||||
virtual CMaterial* GetRenderMaterial() const { return m_pMaterial; };
|
||||
// Get the material name. Even though the material pointer is null, the material name can exist separately.
|
||||
virtual QString GetMaterialName() const;
|
||||
virtual void OnMaterialChanged([[maybe_unused]] MaterialChangeFlags change) {}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
//! Analyze errors for this object.
|
||||
virtual void Validate(IErrorReport* report);
|
||||
@@ -861,9 +837,6 @@ private:
|
||||
//! Pointer to parent node.
|
||||
mutable CBaseObject* m_parent;
|
||||
|
||||
//! Material of this object.
|
||||
CMaterial* m_pMaterial;
|
||||
|
||||
AABB m_worldBounds;
|
||||
|
||||
// The transform delegate
|
||||
|
||||
Reference in New Issue
Block a user