fixing comment since the original check was correct

This commit is contained in:
amer cerkic 2019-02-26 15:05:58 -08:00
parent 5a7c8c3126
commit f5852139f7

View file

@ -209,11 +209,7 @@ void PolyLineEntityRenderer::updateGeometry() {
for (int i = 0; i < maxNumVertices; i++) {
// Position
glm::vec3 point = _points[i];
float width=PolyLineEntityItem::DEFAULT_LINE_WIDTH;
if(_widths.size()>0 && i < _widths.size()) {
width = _widths[i];
}
float width = i < _widths.size() ? _widths[i] : PolyLineEntityItem::DEFAULT_LINE_WIDTH;
if (i > 0) { // First uCoord is 0.0f
if (!_isUVModeStretch) {