svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r22625:22668
[blender-staging.git] / source / gameengine / Converter / BL_BlenderDataConversion.cpp
index 3d38759d9516f074a8be18835e34d87e48cd6585..6cb4e980a3de05c0692ca86b1036ebfacb0e48ae 100644 (file)
@@ -2404,8 +2404,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;
                }