mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2025-04-10 19:15:14 +00:00
properly mark dynamic meshes as such
This commit is contained in:
parent
e1278f4451
commit
e79b241a49
|
@ -274,15 +274,17 @@ bool CNew3D::DrawModel(UINT32 modelAddr)
|
|||
|
||||
// try to find meshes in the rom cache
|
||||
|
||||
|
||||
if (m_romMap.count(modelAddr)) {
|
||||
m->meshes = m_romMap[modelAddr];
|
||||
cached = true;
|
||||
}
|
||||
else {
|
||||
m->meshes = std::make_shared<std::vector<Mesh>>();
|
||||
m->dynamic = false;
|
||||
m_romMap[modelAddr] = m->meshes; // store meshes in our rom map here
|
||||
}
|
||||
|
||||
m->dynamic = false;
|
||||
}
|
||||
else {
|
||||
m->meshes = std::make_shared<std::vector<Mesh>>();
|
||||
|
|
Loading…
Reference in a new issue