mirror of
https://github.com/lubosz/overte.git
synced 2025-04-26 14:55:25 +02:00
Merge pull request #6359 from ZappoMan/fixRenderItemLeak
fix render item leak on Model::reset()
This commit is contained in:
commit
1d693ffd66
1 changed files with 3 additions and 3 deletions
|
@ -135,9 +135,6 @@ void Model::reset() {
|
|||
const FBXGeometry& geometry = _geometry->getFBXGeometry();
|
||||
_rig->reset(geometry.joints);
|
||||
}
|
||||
_meshGroupsKnown = false;
|
||||
_readyWhenAdded = false; // in case any of our users are using scenes
|
||||
invalidCalculatedMeshBoxes(); // if we have to reload, we need to assume our mesh boxes are all invalid
|
||||
}
|
||||
|
||||
bool Model::updateGeometry() {
|
||||
|
@ -1156,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
|
||||
|
|
Loading…
Reference in a new issue