Fix crash in LLConvexDecompositionVHACD::executeStage accessing nullptr

Merged upstream in SLViewer PR#5306
This commit is contained in:
Hecklezz
2026-01-21 03:45:05 +10:00
parent a798aef4d2
commit c032816c56
@@ -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));
}