Only use loaded data for ESM4::Land

Prevents broken vertex colors in cells that lack vertex colors
macos_ci_fix
Alexei Kotov 1 year ago
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…
Cancel
Save