mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 14:01:49 +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)});
|
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;
|
int added = 0;
|
||||||
|
|
||||||
auto range = assetsLoadInfo.referencedAssets.equal_range(path);
|
auto range = assetsLoadInfo.referencedAssets.equal_range(path);
|
||||||
for (auto it = range.first; it != range.second; ++it) {
|
for (auto it = range.first; it != range.second; ++it) {
|
||||||
const auto& recipe = assetsLoadInfo.processedEntries.find(it->second);
|
const auto& recipe = assetsLoadInfo.processedEntries.find(it->second);
|
||||||
if (recipe != assetsLoadInfo.processedEntries.end()) {
|
if (recipe != assetsLoadInfo.processedEntries.end()) {
|
||||||
dst.entries.push(recipe->second);
|
entries.push(recipe->second);
|
||||||
added++;
|
added++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -133,7 +133,7 @@ public:
|
||||||
const std::vector<io::path>& alternatives
|
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);
|
void attachToFile(const io::path& file, AssetFullId assetId);
|
||||||
|
|
||||||
Assets& getAssets();
|
Assets& getAssets();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue