mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-11 19:17:33 +00:00
Gizmos refactoring - Removed GLModels defined into GLGizmoBase, and mostly unused, to avoid wasting GPU memory. Use a shared GLModel for Gizmos inheriting from GLGizmoPainterBase. Initialization of GLModels moved from constructor to render methods
(cherry picked from commit prusa3d/PrusaSlicer@e3d5cd445c)
This commit is contained in:
committed by
Noisyfox
parent
874f39aac1
commit
b7989e3b2f
@@ -57,7 +57,6 @@ private:
|
||||
|
||||
public:
|
||||
GLGizmoRotate(GLCanvas3D& parent, Axis axis);
|
||||
GLGizmoRotate(const GLGizmoRotate& other);
|
||||
virtual ~GLGizmoRotate() = default;
|
||||
|
||||
double get_angle() const { return m_angle; }
|
||||
@@ -94,7 +93,7 @@ class GLGizmoRotate3D : public GLGizmoBase
|
||||
{
|
||||
// BBS: change to protected for subclass access
|
||||
protected:
|
||||
std::vector<GLGizmoRotate> m_gizmos;
|
||||
std::array<GLGizmoRotate, 3> m_gizmos;
|
||||
|
||||
//BBS: add size adjust related
|
||||
GizmoObjectManipulation* m_object_manipulation;
|
||||
|
||||
Reference in New Issue
Block a user