Skip to content

Commit

Permalink
Move crash fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlaltdavid committed Sep 7, 2021
1 parent e3c28a5 commit 96708f5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libraries/physics/src/MultiSphereShape.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -508,12 +508,11 @@ void MultiSphereShape::connectEdges(std::vector<std::pair<glm::vec3, glm::vec3>>
}

void MultiSphereShape::calculateChamferBox(std::vector<std::pair<glm::vec3, glm::vec3>>& outLines, const std::vector<float>& radiuses, const std::vector<glm::vec3>& axes, const glm::vec3& translation) {
std::vector<std::pair<glm::vec3, glm::vec3>> sphereLines;

if (radiuses.size() == 0) {
return;
}

std::vector<std::pair<glm::vec3, glm::vec3>> sphereLines;
calculateSphereLines(sphereLines, glm::vec3(0.0f), radiuses[0]);

std::vector<SphereRegion> regions = {
Expand Down

0 comments on commit 96708f5

Please sign in to comment.