Commit f84e6628 authored by hybrid's avatar hybrid

Forgot the destructor.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2347 dfc29bdd-3216-0410-991c-e03cc46cb475
parent f95fd674
...@@ -42,6 +42,13 @@ CCubeSceneNode::CCubeSceneNode(f32 size, ISceneNode* parent, ISceneManager* mgr, ...@@ -42,6 +42,13 @@ CCubeSceneNode::CCubeSceneNode(f32 size, ISceneNode* parent, ISceneManager* mgr,
} }
CCubeSceneNode::~CCubeSceneNode()
{
if (Mesh)
Mesh->drop();
}
void CCubeSceneNode::setSize() void CCubeSceneNode::setSize()
{ {
if (Mesh) if (Mesh)
......
...@@ -22,6 +22,8 @@ namespace scene ...@@ -22,6 +22,8 @@ namespace scene
const core::vector3df& rotation = core::vector3df(0,0,0), const core::vector3df& rotation = core::vector3df(0,0,0),
const core::vector3df& scale = core::vector3df(1.0f, 1.0f, 1.0f)); const core::vector3df& scale = core::vector3df(1.0f, 1.0f, 1.0f));
virtual ~CCubeSceneNode();
virtual void OnRegisterSceneNode(); virtual void OnRegisterSceneNode();
//! renders the node. //! renders the node.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment