mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-19 15:52:53 +00:00
fix: not accessing previous zone data when taking an asset from global asset pools
This commit is contained in:
parent
36f0764cd5
commit
c86f9f6391
@ -38,7 +38,12 @@ public:
|
|||||||
for (const auto scrString : existingAsset->m_used_script_strings)
|
for (const auto scrString : existingAsset->m_used_script_strings)
|
||||||
m_zone.m_script_strings.AddOrGetScriptString(existingAsset->m_zone->m_script_strings.CValue(scrString));
|
m_zone.m_script_strings.AddOrGetScriptString(existingAsset->m_zone->m_script_strings.CValue(scrString));
|
||||||
|
|
||||||
return AssetCreationResult::Success(context.AddAsset(std::move(registration)));
|
auto* newAsset = context.AddAsset(std::move(registration));
|
||||||
|
|
||||||
|
// Make sure we remember this asset came from another zone
|
||||||
|
newAsset->m_zone = existingAsset->m_zone;
|
||||||
|
|
||||||
|
return AssetCreationResult::Success(newAsset);
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user