mirror of
https://github.com/OpenMW/openmw.git
synced 2025-05-02 06:41:23 +00:00
Simplify filling positions
This commit is contained in:
parent
4a2a320e08
commit
2c2a60b86c
1 changed files with 2 additions and 7 deletions
|
@ -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…
Reference in a new issue