mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-26 22:45:15 -04:00
Fix comparison
This commit is contained in:
parent
7fc3153f62
commit
93f73fe87b
@ -1082,7 +1082,7 @@ namespace NifOsg
|
|||||||
vertexColorsPresent = !data->colors.empty();
|
vertexColorsPresent = !data->colors.empty();
|
||||||
triCommonToGeometry(geometry, data->vertices, data->normals, data->uvlist, data->colors, boundTextures, triStrips->name);
|
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.
|
// 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<unsigned short>& strip : data->strips)
|
for (const std::vector<unsigned short>& strip : data->strips)
|
||||||
geometry->addPrimitiveSet(new osg::DrawElementsUShort(osg::PrimitiveSet::TRIANGLE_STRIP, strip.size(),
|
geometry->addPrimitiveSet(new osg::DrawElementsUShort(osg::PrimitiveSet::TRIANGLE_STRIP, strip.size(),
|
||||||
(unsigned short*)strip.data()));
|
(unsigned short*)strip.data()));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user