added some asserts to test future mistakes that would cause render item leaks

This commit is contained in:
Brad Hefta-Gaub 2015-11-09 17:09:17 -08:00
parent e47b049200
commit 021a6e689d

View file

@ -1153,6 +1153,9 @@ void Model::segregateMeshGroups() {
return;
}
Q_ASSERT(_renderItems.isEmpty()); // We should not have any existing renderItems if we enter this section of code
Q_ASSERT(_renderItemsSet.isEmpty()); // We should not have any existing renderItemsSet if we enter this section of code
_renderItemsSet.clear();
// Run through all of the meshes, and place them into their segregated, but unsorted buckets