mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-21 10:49:23 +00:00
More linux and memory leak fixes
This commit is contained in:
@@ -17,6 +17,7 @@ protected:
|
||||
CCollisionRenderData mRenderData;
|
||||
|
||||
public:
|
||||
virtual ~CCollisionMesh() = default;
|
||||
virtual void BuildRenderData();
|
||||
|
||||
/** Accessors */
|
||||
|
||||
@@ -14,6 +14,7 @@ enum class EOBBTreeNodeType : uint8
|
||||
|
||||
struct SOBBTreeNode
|
||||
{
|
||||
virtual ~SOBBTreeNode() = default;
|
||||
CTransform4f Transform;
|
||||
CVector3f Radii;
|
||||
EOBBTreeNodeType NodeType;
|
||||
|
||||
@@ -50,6 +50,8 @@ protected:
|
||||
{}
|
||||
|
||||
public:
|
||||
virtual ~CArrayProperty() { delete mpItemArchetype; }
|
||||
|
||||
virtual uint32 DataSize() const
|
||||
{
|
||||
return sizeof(SScriptArray);
|
||||
|
||||
@@ -352,13 +352,9 @@ public:
|
||||
typedef PropType ValueType;
|
||||
|
||||
protected:
|
||||
PropType mDefaultValue;
|
||||
PropType mDefaultValue = {};
|
||||
|
||||
TTypedProperty(EGame Game)
|
||||
: IProperty(Game)
|
||||
{
|
||||
memset(&mDefaultValue, 0, sizeof(PropType));
|
||||
}
|
||||
TTypedProperty(EGame Game) : IProperty(Game) {}
|
||||
|
||||
public:
|
||||
virtual EPropertyType Type() const { return PropEnum; }
|
||||
|
||||
@@ -66,7 +66,7 @@ CScriptNode::CScriptNode(CScene *pScene, uint32 NodeID, CSceneNode *pParent, CSc
|
||||
}
|
||||
|
||||
// Fetch LightParameters
|
||||
mpLightParameters = new CLightParameters(mpInstance->LightParameters(), mpInstance->GameTemplate()->Game());
|
||||
mpLightParameters = std::make_unique<CLightParameters>(mpInstance->LightParameters(), mpInstance->GameTemplate()->Game());
|
||||
SetLightLayerIndex(mpLightParameters->LightLayerIndex());
|
||||
}
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ class CScriptNode : public CSceneNode
|
||||
bool mHasVolumePreview;
|
||||
CModelNode *mpVolumePreviewNode;
|
||||
|
||||
CLightParameters *mpLightParameters;
|
||||
std::unique_ptr<CLightParameters> mpLightParameters;
|
||||
|
||||
public:
|
||||
enum class EGameModeVisibility
|
||||
|
||||
Reference in New Issue
Block a user