From 96708f5fe3c1d85474338b2a602882304ad0ccd4 Mon Sep 17 00:00:00 2001 From: David Rowe Date: Tue, 7 Sep 2021 18:58:37 +1200 Subject: [PATCH] Move crash fix --- libraries/physics/src/MultiSphereShape.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libraries/physics/src/MultiSphereShape.cpp b/libraries/physics/src/MultiSphereShape.cpp index ce00a7c40f..71702ac62b 100644 --- a/libraries/physics/src/MultiSphereShape.cpp +++ b/libraries/physics/src/MultiSphereShape.cpp @@ -508,12 +508,11 @@ void MultiSphereShape::connectEdges(std::vector> } void MultiSphereShape::calculateChamferBox(std::vector>& outLines, const std::vector& radiuses, const std::vector& axes, const glm::vec3& translation) { - std::vector> sphereLines; - if (radiuses.size() == 0) { return; } + std::vector> sphereLines; calculateSphereLines(sphereLines, glm::vec3(0.0f), radiuses[0]); std::vector regions = {