mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
Actually render polylines
This commit is contained in:
parent
5bade2ef9a
commit
12ccbdac0b
1 changed files with 1 additions and 3 deletions
|
@ -162,9 +162,7 @@ void RenderablePolyLineEntityItem::update(const quint64& now) {
|
|||
memcpy(&_uniformBuffer.edit<PolyLineUniforms>(), &uniforms, sizeof(PolyLineUniforms));
|
||||
if (_pointsChanged || _strokeWidthsChanged || _normalsChanged) {
|
||||
QWriteLocker lock(&_quadReadWriteLock);
|
||||
if (_points.size() < 2 || _normals.size() < 2 || _strokeWidths.size() < 2) {
|
||||
_empty = true;
|
||||
}
|
||||
_empty = (_points.size() < 2 || _normals.size() < 2 || _strokeWidths.size() < 2);
|
||||
if (!_empty) {
|
||||
updateVertices();
|
||||
updateGeometry();
|
||||
|
|
Loading…
Reference in a new issue