1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

correctly register them

This commit is contained in:
Laserlicht
2025-09-19 14:48:17 +02:00
parent 6320fd8ab0
commit a4b09f8310
4 changed files with 10 additions and 1 deletions

View File

@@ -486,7 +486,7 @@ void RenderHandler::onLibraryLoadingFinished(const Services * services)
{
assert(animationLayouts.empty());
assetGenerator->initialize();
animationLayouts = assetGenerator->generateAllAnimations();
updateGeneratedAssets();
addImageListEntries(services->creatures());
addImageListEntries(services->heroTypes());
@@ -545,3 +545,8 @@ std::shared_ptr<AssetGenerator> RenderHandler::getAssetGenerator()
{
return assetGenerator;
}
void RenderHandler::updateGeneratedAssets()
{
animationLayouts = assetGenerator->generateAllAnimations();
}