properly mark dynamic meshes as such

This commit is contained in:
Ian Curtis 2016-03-28 19:58:36 +00:00
parent e1278f4451
commit e79b241a49

View file

@ -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>>();