mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
Small refactoring
This commit is contained in:
parent
4d39050dcd
commit
ed0f3b3406
2 changed files with 2 additions and 3 deletions
|
@ -10,9 +10,6 @@
|
||||||
#include "PresetBundle.hpp"
|
#include "PresetBundle.hpp"
|
||||||
#include "Gizmos/GLGizmoBase.hpp"
|
#include "Gizmos/GLGizmoBase.hpp"
|
||||||
#include "GLCanvas3D.hpp"
|
#include "GLCanvas3D.hpp"
|
||||||
#if ENABLE_NON_STATIC_CANVAS_MANAGER
|
|
||||||
#include "GLCanvas3DManager.hpp"
|
|
||||||
#endif // ENABLE_NON_STATIC_CANVAS_MANAGER
|
|
||||||
|
|
||||||
#include <GL/glew.h>
|
#include <GL/glew.h>
|
||||||
|
|
||||||
|
|
|
@ -56,7 +56,9 @@ View3D::~View3D()
|
||||||
_3DScene::remove_canvas(m_canvas_widget);
|
_3DScene::remove_canvas(m_canvas_widget);
|
||||||
#endif // !ENABLE_NON_STATIC_CANVAS_MANAGER
|
#endif // !ENABLE_NON_STATIC_CANVAS_MANAGER
|
||||||
delete m_canvas_widget;
|
delete m_canvas_widget;
|
||||||
|
#if !ENABLE_NON_STATIC_CANVAS_MANAGER
|
||||||
m_canvas = nullptr;
|
m_canvas = nullptr;
|
||||||
|
#endif // !ENABLE_NON_STATIC_CANVAS_MANAGER
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue