refactor Brush to be used in shared_ptr

This commit is contained in:
2019-01-22 22:49:43 +01:00
parent 9e76cf3194
commit e26fcf1163
22 changed files with 254 additions and 197 deletions

View File

@@ -62,8 +62,7 @@ class CanvasModePen : public CanvasMode
float m_camera_fov;
float m_zoom_canvas = 1.f;
float m_zoom_start;
bool m_valid_brush = false;
Brush m_brush;
std::shared_ptr<Brush> m_brush;
// resizing the tip
bool m_resizing = false;
public: