CModelNode: Initialize all class variables
Provides a consistent initial state.
This commit is contained in:
parent
c19017f7ad
commit
62b08a0b14
|
@ -7,7 +7,7 @@
|
||||||
class CModelNode : public CSceneNode
|
class CModelNode : public CSceneNode
|
||||||
{
|
{
|
||||||
TResPtr<CModel> mpModel;
|
TResPtr<CModel> mpModel;
|
||||||
uint32 mActiveMatSet;
|
uint32 mActiveMatSet = 0;
|
||||||
bool mWorldModel = false;
|
bool mWorldModel = false;
|
||||||
bool mForceAlphaOn = false;
|
bool mForceAlphaOn = false;
|
||||||
CColor mTintColor{CColor::White()};
|
CColor mTintColor{CColor::White()};
|
||||||
|
@ -15,7 +15,7 @@ class CModelNode : public CSceneNode
|
||||||
CColor mScanOverlayColor;
|
CColor mScanOverlayColor;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit CModelNode(CScene *pScene, uint32 NodeID, CSceneNode *pParent = 0, CModel *pModel = 0);
|
explicit CModelNode(CScene *pScene, uint32 NodeID, CSceneNode *pParent = nullptr, CModel *pModel = nullptr);
|
||||||
|
|
||||||
ENodeType NodeType() override;
|
ENodeType NodeType() override;
|
||||||
void PostLoad() override;
|
void PostLoad() override;
|
||||||
|
|
Loading…
Reference in New Issue