2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-06-07 17:22:34 +00:00

chore: reorder assignment of light def members slightly

This commit is contained in:
Jan Laupetin
2026-05-16 10:45:26 +02:00
parent 72dd51609f
commit 015544eb79
5 changed files with 11 additions and 7 deletions
@@ -37,6 +37,8 @@ namespace
std::string imageName;
int8_t samplerState;
file.m_stream->read(reinterpret_cast<char*>(&samplerState), sizeof(int8_t));
lightDef->attenuation.samplerState = samplerState;
std::getline(*file.m_stream, imageName, '\0');
auto* imageDependency = context.LoadDependency<AssetImage>(imageName);
@@ -47,7 +49,6 @@ namespace
}
registration.AddDependency(imageDependency);
lightDef->attenuation.samplerState = samplerState;
lightDef->attenuation.image = imageDependency->Asset();
context.GetZoneAssetCreationState<LightDefAssetCreationState>().SetLightDefLookupStart(lightDef, context);