Fix crash in LLConvexDecompositionVHACD::executeStage accessing nullptr

Signed-off-by: Hecklezz <tj8@live.com.au>
This commit is contained in:
Hecklezz
2026-01-20 19:33:56 +02:00
committed by Andrey Kleshchev
parent c2406b5c2e
commit 5b41bf0744
@@ -340,6 +340,12 @@ LLCDResult LLConvexDecompositionVHACD::executeStage(int stage)
out_mesh.setVertices(ch.m_points);
out_mesh.setIndices(ch.m_triangles);
if (!mBoundDecomp)
{
mVHACD->Clean();
return LLCD_NULL_PTR;
}
mBoundDecomp->mDecomposedHulls.push_back(std::move(out_mesh));
}