Another refactoring of GLGizmosManager

This commit is contained in:
Enrico Turri 2019-07-17 12:43:27 +02:00
parent da1fa0b6e3
commit 401707a6fe
4 changed files with 64 additions and 80 deletions

View file

@ -60,7 +60,7 @@ public:
};
private:
GLCanvas3D* m_parent;
GLCanvas3D& m_parent;
bool m_enabled;
typedef std::map<EType, GLGizmoBase*> GizmosMap;
GizmosMap m_gizmos;
@ -92,10 +92,10 @@ private:
bool m_serializing;
public:
GLGizmosManager();
explicit GLGizmosManager(GLCanvas3D& parent);
~GLGizmosManager();
bool init(GLCanvas3D& parent);
bool init();
template<class Archive>
void load(Archive& ar)