From ac9229ace03330cee264908ee33e5b52d2789c7a Mon Sep 17 00:00:00 2001 From: David Rowe Date: Sun, 29 Aug 2021 21:34:31 +1200 Subject: [PATCH] Fix avatar crash --- libraries/physics/src/MultiSphereShape.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libraries/physics/src/MultiSphereShape.cpp b/libraries/physics/src/MultiSphereShape.cpp index ca5346cd4c..1d2525741c 100644 --- a/libraries/physics/src/MultiSphereShape.cpp +++ b/libraries/physics/src/MultiSphereShape.cpp @@ -486,7 +486,10 @@ void MultiSphereShape::calculateDebugLines() { break; } } - } + } + if (radiuses.size() == 0) { + radiuses.push_back(0.0f); + } calculateChamferBox(_debugLines, radiuses, axes, _midPoint); } else if (_spheres.size() == 8) { std::vector axes;