Skip to content

Commit

Permalink
Remove package resource ID from resource handler upon resource removal
Browse files Browse the repository at this point in the history
  • Loading branch information
3dJan committed Oct 16, 2024
1 parent 0b4c011 commit a12a270
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Model/Classes/NMR_Model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1715,6 +1715,8 @@ namespace NMR {

m_ResourceMap.erase(resourceMapIterator);

m_resourceHandler.removePackageResourceID(pResource->getPackageResourceID());

// Remove from specific resource lists

auto objectIterator = std::find(m_ObjectLookup.begin(), m_ObjectLookup.end(), pResource);
Expand Down

0 comments on commit a12a270

Please sign in to comment.