mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-04 02:41:19 +00:00
Move key when inserting item to mLODNameCache
This commit is contained in:
parent
6e3fd34790
commit
2169e22e93
@ -664,13 +664,11 @@ namespace MWRender
|
||||
if (found != mLODNameCache.end() && found->first == key)
|
||||
model = found->second;
|
||||
else
|
||||
model
|
||||
= mLODNameCache
|
||||
.insert(found,
|
||||
{ key,
|
||||
Misc::ResourceHelpers::getLODMeshName(world.getESMVersions()[refNum.mContentFile],
|
||||
model, mSceneManager->getVFS(), lod) })
|
||||
->second;
|
||||
model = mLODNameCache
|
||||
.emplace_hint(found, std::move(key),
|
||||
Misc::ResourceHelpers::getLODMeshName(world.getESMVersions()[refNum.mContentFile],
|
||||
model, mSceneManager->getVFS(), lod))
|
||||
->second;
|
||||
}
|
||||
|
||||
osg::ref_ptr<const osg::Node> cnode = mSceneManager->getTemplate(model, false);
|
||||
|
Loading…
Reference in New Issue
Block a user