Small refactoring

This commit is contained in:
enricoturri1966 2020-03-25 13:55:17 +01:00
parent 4d39050dcd
commit ed0f3b3406
2 changed files with 2 additions and 3 deletions

View file

@ -10,9 +10,6 @@
#include "PresetBundle.hpp"
#include "Gizmos/GLGizmoBase.hpp"
#include "GLCanvas3D.hpp"
#if ENABLE_NON_STATIC_CANVAS_MANAGER
#include "GLCanvas3DManager.hpp"
#endif // ENABLE_NON_STATIC_CANVAS_MANAGER
#include <GL/glew.h>

View file

@ -56,7 +56,9 @@ View3D::~View3D()
_3DScene::remove_canvas(m_canvas_widget);
#endif // !ENABLE_NON_STATIC_CANVAS_MANAGER
delete m_canvas_widget;
#if !ENABLE_NON_STATIC_CANVAS_MANAGER
m_canvas = nullptr;
#endif // !ENABLE_NON_STATIC_CANVAS_MANAGER
}
}