mirror of
https://github.com/FirestormViewer/phoenix-firestorm.git
synced 2026-08-14 00:48:30 +00:00
Fix crash in LLConvexDecompositionVHACD::executeStage accessing nullptr
Signed-off-by: Hecklezz <tj8@live.com.au>
This commit is contained in:
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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user