From 8083f880490819c82f8a15bd1ede34de77427344 Mon Sep 17 00:00:00 2001 From: aap Date: Wed, 17 Feb 2016 23:59:05 +0100 Subject: [PATCH] changed atomic-clump connection --- src/clump.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/clump.cpp b/src/clump.cpp index 793d9d2..4d07c82 100644 --- a/src/clump.cpp +++ b/src/clump.cpp @@ -568,6 +568,7 @@ Atomic::create(void) assert(atomic != NULL); atomic->object.init(Atomic::ID, 0); atomic->geometry = NULL; + atomic->clump = NULL; atomic->pipeline = NULL; atomic->renderCB = Atomic::defaultRenderCB; atomic->object.flags = Atomic::COLLISIONTEST | Atomic::RENDER; @@ -599,6 +600,8 @@ Atomic::destroy(void) this->destructPlugins(); if(this->geometry) this->geometry->destroy(); + if(this->clump) + this->inClump.remove(); this->setFrame(NULL); free(this); }