mirror of
https://github.com/FirestormViewer/phoenix-firestorm.git
synced 2026-08-14 08:53:53 +00:00
Fix crash in LLConvexDecompositionVHACD::executeStage accessing nullptr
Merged upstream in SLViewer PR#5306
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user