destroy pointermanager before pickmanager

This commit is contained in:
SamGondelman 2018-01-16 10:25:03 -08:00
parent 3879626205
commit c3eb4b5ecd

View file

@ -2093,6 +2093,11 @@ void Application::cleanupBeforeQuit() {
DependencyManager::destroy<AudioInjectorManager>();
DependencyManager::destroy<AudioScriptingInterface>();
// The PointerManager must be destroyed before the PickManager because when a Pointer is deleted,
// it accesses the PickManager to delete its associated Pick
DependencyManager::destroy<PointerManager>();
DependencyManager::destroy<PickManager>();
qCDebug(interfaceapp) << "Application::cleanupBeforeQuit() complete";
}