mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
added check for normals and vertices
This commit is contained in:
parent
5ce3b13a4c
commit
1760720b2b
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ void RenderablePolyLineEntityItem::updateGeometry() {
|
|||
|
||||
void RenderablePolyLineEntityItem::render(RenderArgs* args) {
|
||||
QWriteLocker lock(&_quadReadWriteLock);
|
||||
if (_points.size() < 2) {
|
||||
if (_points.size() < 2 || _normals.size () < 2 || _vertices.size() < 2) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue