diff --git a/core/src/objects/workspace.cpp b/core/src/objects/workspace.cpp index 4b830fe..8b2085e 100644 --- a/core/src/objects/workspace.cpp +++ b/core/src/objects/workspace.cpp @@ -151,7 +151,12 @@ void Workspace::PhysicsStep(float deltaTime) { // Destroy fallen parts if (part->cframe.Position().Y() < this->fallenPartsDestroyHeight) { + auto parent = part->GetParent(); part->Destroy(); + + // If the parent of the part is a Model, destroy it too + if (parent.has_value() && parent.value()->IsA("Model")) + parent.value()->Destroy(); } } }