mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-21 05:09:43 +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 <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(
|
||||
|
|
Loading…
Reference in a new issue