Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnrico Turri <enricoturri@seznam.cz>2020-01-28 17:57:02 +0300
committerEnrico Turri <enricoturri@seznam.cz>2020-01-28 17:57:02 +0300
commit9032dadff3d861abe141d05b6b3868c52556d43e (patch)
tree95f484012dea7d05d23fcf45ce82728cd664d7cd /src/slic3r/GUI/GLCanvas3D.hpp
parentd5b258c2672de78ce9da5f771a3aca00b13aa8ae (diff)
Added extra frame renders to let labels grow to their final size
Diffstat (limited to 'src/slic3r/GUI/GLCanvas3D.hpp')
-rw-r--r--src/slic3r/GUI/GLCanvas3D.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/slic3r/GUI/GLCanvas3D.hpp b/src/slic3r/GUI/GLCanvas3D.hpp
index 2ad32a6e5..eb4aca721 100644
--- a/src/slic3r/GUI/GLCanvas3D.hpp
+++ b/src/slic3r/GUI/GLCanvas3D.hpp
@@ -377,12 +377,14 @@ private:
class Labels
{
bool m_enabled{ false };
+ GLCanvas3D& m_canvas;
public:
+ explicit Labels(GLCanvas3D& canvas) : m_canvas(canvas) {}
void enable(bool enable) { m_enabled = enable; }
void show(bool show);
bool is_shown() const;
- void render(const GLCanvas3D& canvas) const;
+ void render() const;
};
#endif // ENABLE_SHOW_SCENE_LABELS