|
|
@@ -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();
|
|
|
+}
|