fix for own bug added since 2.49a,
[blender.git] / source / gameengine / Converter / BL_BlenderDataConversion.cpp
index 5b03bbbbc4ec1ff210d3e672bf4d6c29c8bc90a6..d2e6bbb43f7d4b86ade1c6bd0602392c09bbdf47 100644 (file)
@@ -2422,8 +2422,11 @@ void BL_ConvertBlenderObjects(struct Main* maggie,
                                        obj->Release();
                        }
                        childrenlist->Release();
+                       
                        // now destroy recursively
+                       converter->UnregisterGameObject(childobj); // removing objects during conversion make sure this runs too
                        kxscene->RemoveObject(childobj);
+                       
                        continue;
                }