mirror of
https://github.com/JulianGro/overte.git
synced 2025-07-24 16:25:32 +02:00
Merge branch 'master' of https://github.com/highfidelity/hifi
This commit is contained in:
commit
d8f52e62fe
1 changed files with 5 additions and 0 deletions
|
@ -141,6 +141,11 @@ void RenderablePolyLineEntityItem::updateVertices() {
|
||||||
_vertices << v1 << v2;
|
_vertices << v1 << v2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Guard against an empty polyline
|
||||||
|
if (finalIndex < 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// For last point we can assume binormals are the same since it represents the last two vertices of quad
|
// For last point we can assume binormals are the same since it represents the last two vertices of quad
|
||||||
point = _points.at(finalIndex);
|
point = _points.at(finalIndex);
|
||||||
v1 = point + binormal;
|
v1 = point + binormal;
|
||||||
|
|
Loading…
Reference in a new issue