Fully replace listener system by signals

Former-commit-id: 032dfddd12cc3a792c71426148c758ffac3621f9
This commit is contained in:
Lynix
2015-06-07 20:42:41 +02:00
parent 0f4cf3c910
commit a069b105e6
63 changed files with 291 additions and 606 deletions

View File

@@ -66,6 +66,8 @@ struct NzMeshImpl
NzMesh::~NzMesh()
{
OnMeshRelease(this);
Destroy();
}
@@ -359,7 +361,6 @@ bool NzMesh::CreateSkeletal(unsigned int jointCount)
return false;
}
NotifyCreated();
return true;
}
@@ -370,7 +371,6 @@ bool NzMesh::CreateStatic()
m_impl = new NzMeshImpl;
m_impl->animationType = nzAnimationType_Static;
NotifyCreated();
return true;
}
@@ -378,7 +378,7 @@ void NzMesh::Destroy()
{
if (m_impl)
{
NotifyDestroy();
OnMeshDestroy(this);
delete m_impl;
m_impl = nullptr;