mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
remove extra argument
This commit is contained in:
parent
c8605fe78b
commit
53237dd102
2 changed files with 3 additions and 3 deletions
|
|
@ -421,14 +421,14 @@ void AssetsLoader::attachToFile(const io::path& file, AssetFullId assetId) {
|
|||
assetsLoadInfo.referencedAssets.insert({file, std::move(assetId)});
|
||||
}
|
||||
|
||||
int AssetsLoader::addReload(const io::path& path, AssetsLoader& dst) {
|
||||
int AssetsLoader::addReload(const io::path& path) {
|
||||
int added = 0;
|
||||
|
||||
auto range = assetsLoadInfo.referencedAssets.equal_range(path);
|
||||
for (auto it = range.first; it != range.second; ++it) {
|
||||
const auto& recipe = assetsLoadInfo.processedEntries.find(it->second);
|
||||
if (recipe != assetsLoadInfo.processedEntries.end()) {
|
||||
dst.entries.push(recipe->second);
|
||||
entries.push(recipe->second);
|
||||
added++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -133,7 +133,7 @@ public:
|
|||
const std::vector<io::path>& alternatives
|
||||
);
|
||||
|
||||
int addReload(const io::path& path, AssetsLoader& dst);
|
||||
int addReload(const io::path& path);
|
||||
void attachToFile(const io::path& file, AssetFullId assetId);
|
||||
|
||||
Assets& getAssets();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue