mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-12-07 19:57:48 +00:00
Updated BSP linker to load assets on the FinalizeZone step.
This commit is contained in:
@@ -9,7 +9,7 @@ namespace BSP
|
||||
{
|
||||
}
|
||||
|
||||
AssetCreationResult ComWorldLinker::linkComWorld(BSPData* bsp)
|
||||
ComWorld* ComWorldLinker::linkComWorld(BSPData* bsp)
|
||||
{
|
||||
// all lights that aren't the sunlight or default light need their own GfxLightDef asset
|
||||
ComWorld* comWorld = m_memory.Alloc<ComWorld>();
|
||||
@@ -32,7 +32,6 @@ namespace BSP
|
||||
sunLight->dir.y = sunLightDirection.y;
|
||||
sunLight->dir.z = sunLightDirection.z;
|
||||
|
||||
auto comWorldAsset = m_context.AddAsset<AssetComWorld>(comWorld->name, comWorld);
|
||||
return AssetCreationResult::Success(comWorldAsset);
|
||||
return comWorld;
|
||||
}
|
||||
} // namespace BSP
|
||||
|
||||
Reference in New Issue
Block a user