1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +00:00

Simplify filling positions

This commit is contained in:
elsid 2023-08-01 20:52:23 +02:00
parent 4a2a320e08
commit 2c2a60b86c
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

View File

@ -1,6 +1,6 @@
#include "storage.hpp"
#include <set>
#include <algorithm>
#include <osg/Image>
#include <osg/Plane>
@ -320,12 +320,7 @@ namespace ESMTerrain
assert(baseVertY == numVerts); // Ensure we covered whole area
if (!validHeightDataExists && ESM::isEsm4Ext(worldspace))
{
for (unsigned int iVert = 0; iVert < numVerts * numVerts; iVert++)
{
positions[static_cast<unsigned int>(iVert)] = osg::Vec3f(0.f, 0.f, 0.f);
}
}
std::fill(positions.begin(), positions.end(), osg::Vec3f());
}
Storage::UniqueTextureId Storage::getVtexIndexAt(