mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-15 23:36:56 -04:00
Simplify filling positions
This commit is contained in:
parent
4a2a320e08
commit
2c2a60b86c
@ -1,6 +1,6 @@
|
|||||||
#include "storage.hpp"
|
#include "storage.hpp"
|
||||||
|
|
||||||
#include <set>
|
#include <algorithm>
|
||||||
|
|
||||||
#include <osg/Image>
|
#include <osg/Image>
|
||||||
#include <osg/Plane>
|
#include <osg/Plane>
|
||||||
@ -320,12 +320,7 @@ namespace ESMTerrain
|
|||||||
assert(baseVertY == numVerts); // Ensure we covered whole area
|
assert(baseVertY == numVerts); // Ensure we covered whole area
|
||||||
|
|
||||||
if (!validHeightDataExists && ESM::isEsm4Ext(worldspace))
|
if (!validHeightDataExists && ESM::isEsm4Ext(worldspace))
|
||||||
{
|
std::fill(positions.begin(), positions.end(), osg::Vec3f());
|
||||||
for (unsigned int iVert = 0; iVert < numVerts * numVerts; iVert++)
|
|
||||||
{
|
|
||||||
positions[static_cast<unsigned int>(iVert)] = osg::Vec3f(0.f, 0.f, 0.f);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Storage::UniqueTextureId Storage::getVtexIndexAt(
|
Storage::UniqueTextureId Storage::getVtexIndexAt(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user