mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-18 01:00:33 +02:00
Alternative crash fix
This commit is contained in:
parent
ac9229ace0
commit
e3c28a5dc8
1 changed files with 5 additions and 3 deletions
|
@ -487,9 +487,6 @@ void MultiSphereShape::calculateDebugLines() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (radiuses.size() == 0) {
|
|
||||||
radiuses.push_back(0.0f);
|
|
||||||
}
|
|
||||||
calculateChamferBox(_debugLines, radiuses, axes, _midPoint);
|
calculateChamferBox(_debugLines, radiuses, axes, _midPoint);
|
||||||
} else if (_spheres.size() == 8) {
|
} else if (_spheres.size() == 8) {
|
||||||
std::vector<glm::vec3> axes;
|
std::vector<glm::vec3> axes;
|
||||||
|
@ -512,6 +509,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) {
|
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;
|
std::vector<std::pair<glm::vec3, glm::vec3>> sphereLines;
|
||||||
|
|
||||||
|
if (radiuses.size() == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
calculateSphereLines(sphereLines, glm::vec3(0.0f), radiuses[0]);
|
calculateSphereLines(sphereLines, glm::vec3(0.0f), radiuses[0]);
|
||||||
|
|
||||||
std::vector<SphereRegion> regions = {
|
std::vector<SphereRegion> regions = {
|
||||||
|
|
Loading…
Reference in a new issue