2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-05-16 23:11:42 +00:00

Add brackets for if. Do not dump lmapLookupStart.

This commit is contained in:
njohnson
2026-05-02 13:10:11 -04:00
committed by Jan Laupetin
parent 773fee4a03
commit 92418daa6d
@@ -12,7 +12,9 @@ namespace light_def
const auto assetFile = context.OpenAssetFile(GetFileNameForAsset(asset.m_name)); const auto assetFile = context.OpenAssetFile(GetFileNameForAsset(asset.m_name));
if (!assetFile || lightDef->attenuation.image == nullptr || lightDef->attenuation.image->name == nullptr) if (!assetFile || lightDef->attenuation.image == nullptr || lightDef->attenuation.image->name == nullptr)
{
return; return;
}
auto& stream = *assetFile; auto& stream = *assetFile;
@@ -20,6 +22,6 @@ namespace light_def
if (imageName[0] == ',') if (imageName[0] == ',')
imageName = &imageName[1]; imageName = &imageName[1];
stream << lightDef->attenuation.samplerState << imageName << static_cast<char>(lightDef->lmapLookupStart); stream << lightDef->attenuation.samplerState << imageName;
} }
} // namespace light_def } // namespace light_def