mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add 'system.preserve-assets-during-frame' setting
This commit is contained in:
parent
ded0964827
commit
31cb9ebd23
5 changed files with 19 additions and 9 deletions
|
|
@ -51,7 +51,9 @@ void AssetsManagement::loadAssets(Content* content) {
|
|||
logger.info() << "loading assets";
|
||||
Shader::preprocessor->setPaths(&paths.resPaths);
|
||||
|
||||
auto new_assets = std::make_unique<Assets>(assetsVault);
|
||||
auto new_assets = std::make_unique<Assets>(
|
||||
settings.system.preserveAssetsDuringFrame.get() ? &assetsVault : nullptr
|
||||
);
|
||||
AssetsLoader loader(engine, *new_assets, paths.resPaths);
|
||||
AssetsLoader::addDefaults(loader, content);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue