Fix T37920: BGE LibLoad failed for meshes with no materials

This commit is contained in:
Campbell Barton
2013-12-30 15:49:13 +11:00
parent 0d6ae3fda2
commit 6a473305af
4 changed files with 25 additions and 3 deletions

View File

@@ -458,9 +458,14 @@ void RAS_MeshObject::RemoveFromBuckets(void *clientobj)
if (!msp)
continue;
/* see [#37920] */
#if 0
RAS_MeshSlot *ms = *msp;
it->m_bucket->RemoveMesh(ms);
it->m_bucket->RemoveMeshSlot(ms);
#else
it->m_bucket->RemoveMesh(this);
#endif
it->m_slots.remove(clientobj);
}
}