From 93f73fe87bfae3b88300a526857645877294e9ae Mon Sep 17 00:00:00 2001 From: capostrophic Date: Thu, 8 Aug 2019 20:41:46 +0300 Subject: [PATCH] Fix comparison --- components/nifosg/nifloader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/nifosg/nifloader.cpp b/components/nifosg/nifloader.cpp index 77e9688c7..e10322f46 100644 --- a/components/nifosg/nifloader.cpp +++ b/components/nifosg/nifloader.cpp @@ -1082,7 +1082,7 @@ namespace NifOsg vertexColorsPresent = !data->colors.empty(); triCommonToGeometry(geometry, data->vertices, data->normals, data->uvlist, data->colors, boundTextures, triStrips->name); // Can't make a triangle from less than three vertices. All strips have the same size. - if (!data->strips.empty() && data->strips[0].size() < 3) + if (!data->strips.empty() && data->strips[0].size() >= 3) for (const std::vector& strip : data->strips) geometry->addPrimitiveSet(new osg::DrawElementsUShort(osg::PrimitiveSet::TRIANGLE_STRIP, strip.size(), (unsigned short*)strip.data()));