mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-03-17 10:23:02 +00:00
refactor: streamline obj compiling asset loading
This commit is contained in:
@@ -17,10 +17,10 @@ namespace
|
||||
auto& memory = zone.Memory();
|
||||
|
||||
#ifdef EXPERIMENTAL_MATERIAL_COMPILATION
|
||||
collection.AddAssetCreator(CreateMaterialCompiler(memory, searchPath, gdt));
|
||||
collection.AddAssetCreator(CreateTechsetLoader(memory, searchPath));
|
||||
collection.AddAssetCreator(material::CreateCompiler(memory, searchPath, gdt));
|
||||
collection.AddAssetCreator(IW4::techset::CreateLoader(memory, searchPath));
|
||||
#endif
|
||||
collection.AddAssetCreator(CreateVertexDeclLoader(memory));
|
||||
collection.AddAssetCreator(vertex_decl::CreateLoader(memory));
|
||||
}
|
||||
|
||||
void ConfigurePostProcessors(AssetCreatorCollection& collection,
|
||||
@@ -32,8 +32,8 @@ namespace
|
||||
{
|
||||
auto& memory = zone.Memory();
|
||||
|
||||
if (ImageIwdPostProcessor<AssetImage>::AppliesToZoneDefinition(zoneDefinition))
|
||||
collection.AddAssetPostProcessor(std::make_unique<ImageIwdPostProcessor<AssetImage>>(zoneDefinition, searchPath, zoneStates, outDir));
|
||||
if (image::IwdPostProcessor<AssetImage>::AppliesToZoneDefinition(zoneDefinition))
|
||||
collection.AddAssetPostProcessor(std::make_unique<image::IwdPostProcessor<AssetImage>>(zoneDefinition, searchPath, zoneStates, outDir));
|
||||
}
|
||||
} // namespace
|
||||
|
||||
|
||||
Reference in New Issue
Block a user