mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-13 07:14:31 +00:00
Only use loaded data for ESM4::Land
Prevents broken vertex colors in cells that lack vertex colors
This commit is contained in:
parent
42e7647508
commit
4b38db4a69
@ -26,8 +26,8 @@ ESM::LandData::LandData(const ESM::Land& land, int loadFlags)
|
||||
mMaxHeight = data.mMaxHeight;
|
||||
}
|
||||
|
||||
ESM::LandData::LandData(const ESM4::Land& land, int loadFlags)
|
||||
: mLoadFlags(loadFlags)
|
||||
ESM::LandData::LandData(const ESM4::Land& land, int /*loadFlags*/)
|
||||
: mLoadFlags(land.mDataTypes) // ESM4::Land is always fully loaded. TODO: implement lazy loading
|
||||
, mSize(Constants::ESM4CellSizeInUnits)
|
||||
, mLandSize(ESM4::Land::VERTS_PER_SIDE)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user