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:
authorYuSanka <yusanka@gmail.com>2019-01-08 15:34:47 +0300
committerYuSanka <yusanka@gmail.com>2019-01-08 15:34:47 +0300
commit24e0c9b79e7faca2a3cf5a07c216648b385daf1a (patch)
tree9946a205db76f2239edd3b8410f0577c6bfed6e6 /src/slic3r/GUI/GUI_ObjectManipulation.hpp
parent4d0c0ac7483eac299fea266d9a35e8e10e3cd5de (diff)
Added "uniform scaling" button
Diffstat (limited to 'src/slic3r/GUI/GUI_ObjectManipulation.hpp')
-rw-r--r--src/slic3r/GUI/GUI_ObjectManipulation.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/slic3r/GUI/GUI_ObjectManipulation.hpp b/src/slic3r/GUI/GUI_ObjectManipulation.hpp
index 97cd2b639..57eb93b71 100644
--- a/src/slic3r/GUI/GUI_ObjectManipulation.hpp
+++ b/src/slic3r/GUI/GUI_ObjectManipulation.hpp
@@ -74,6 +74,7 @@ class ObjectManipulation : public OG_Settings
Vec3d m_new_scale;
Vec3d m_new_size;
bool m_new_enabled;
+ bool m_uniform_scale {false};
public:
ObjectManipulation(wxWindow* parent);
@@ -88,6 +89,9 @@ public:
// Called from the App to update the UI if dirty.
void update_if_dirty();
+ void set_uniform_scaling(const bool uniform_scale) { m_uniform_scale = uniform_scale;}
+ bool get_uniform_scaling() const { return m_uniform_scale; }
+
private:
void reset_settings_value();