avoid div by zero

This commit is contained in:
Seth Alves 2019-06-04 12:56:29 -07:00
parent 8a9f3b9508
commit 766a5c7f81

View file

@ -177,6 +177,9 @@ void PolyLineEntityRenderer::doRenderUpdateSynchronousTyped(const ScenePointer&
void PolyLineEntityRenderer::updateGeometry() {
int maxNumVertices = std::min(_points.length(), _normals.length());
if (maxNumVertices < 1) {
return;
}
bool doesStrokeWidthVary = false;
if (_widths.size() > 0) {
float prevWidth = _widths[0];