mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-05 01:20:13 +02:00
Fix for AnimDebugDraw crash on shutdown.
This commit is contained in:
parent
a454584496
commit
90a551214e
3 changed files with 8 additions and 0 deletions
|
@ -794,6 +794,8 @@ void Application::cleanupBeforeQuit() {
|
|||
DependencyManager::get<EyeTracker>()->setEnabled(false, true);
|
||||
#endif
|
||||
|
||||
AnimDebugDraw::getInstance().shutdown();
|
||||
|
||||
if (_keyboardFocusHighlightID > 0) {
|
||||
getOverlays().deleteOverlay(_keyboardFocusHighlightID);
|
||||
_keyboardFocusHighlightID = -1;
|
||||
|
|
|
@ -141,6 +141,10 @@ AnimDebugDraw::AnimDebugDraw() :
|
|||
}
|
||||
|
||||
AnimDebugDraw::~AnimDebugDraw() {
|
||||
}
|
||||
|
||||
void AnimDebugDraw::shutdown() {
|
||||
// remove renderItem from main 3d scene.
|
||||
render::ScenePointer scene = AbstractViewStateInterface::instance()->getMain3DScene();
|
||||
if (scene && _itemID) {
|
||||
render::PendingChanges pendingChanges;
|
||||
|
|
|
@ -27,6 +27,8 @@ public:
|
|||
AnimDebugDraw();
|
||||
~AnimDebugDraw();
|
||||
|
||||
void shutdown();
|
||||
|
||||
// draw a skeleton bind pose
|
||||
void addSkeleton(const std::string& key, AnimSkeleton::ConstPointer skeleton, const AnimPose& rootPose, const glm::vec4& color);
|
||||
void removeSkeleton(const std::string& key);
|
||||
|
|
Loading…
Reference in a new issue