mirror of
https://github.com/aap/librw.git
synced 2025-12-22 10:29:55 +00:00
changed atomic-clump connection
This commit is contained in:
@@ -568,6 +568,7 @@ Atomic::create(void)
|
|||||||
assert(atomic != NULL);
|
assert(atomic != NULL);
|
||||||
atomic->object.init(Atomic::ID, 0);
|
atomic->object.init(Atomic::ID, 0);
|
||||||
atomic->geometry = NULL;
|
atomic->geometry = NULL;
|
||||||
|
atomic->clump = NULL;
|
||||||
atomic->pipeline = NULL;
|
atomic->pipeline = NULL;
|
||||||
atomic->renderCB = Atomic::defaultRenderCB;
|
atomic->renderCB = Atomic::defaultRenderCB;
|
||||||
atomic->object.flags = Atomic::COLLISIONTEST | Atomic::RENDER;
|
atomic->object.flags = Atomic::COLLISIONTEST | Atomic::RENDER;
|
||||||
@@ -599,6 +600,8 @@ Atomic::destroy(void)
|
|||||||
this->destructPlugins();
|
this->destructPlugins();
|
||||||
if(this->geometry)
|
if(this->geometry)
|
||||||
this->geometry->destroy();
|
this->geometry->destroy();
|
||||||
|
if(this->clump)
|
||||||
|
this->inClump.remove();
|
||||||
this->setFrame(NULL);
|
this->setFrame(NULL);
|
||||||
free(this);
|
free(this);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user