diff --git a/Source/Model/Classes/NMR_Model.cpp b/Source/Model/Classes/NMR_Model.cpp index 3b8bb84fd..df2e204a5 100644 --- a/Source/Model/Classes/NMR_Model.cpp +++ b/Source/Model/Classes/NMR_Model.cpp @@ -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);