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:
authorbubnikv <bubnikv@gmail.com>2019-05-03 13:36:26 +0300
committerbubnikv <bubnikv@gmail.com>2019-05-03 13:36:26 +0300
commit0ab96ed6b5786eda18b7cceb4f7c695cd61065ee (patch)
treea6c520e9314f1a4a29897570c0e17c815401926f /src/slic3r/GUI/GUI_ObjectManipulation.hpp
parentf2bb070ab94b01bd2a0c6b63bd37a8ff800ad4b4 (diff)
Changed the "non-uniform scaling is not possible" message.
Diffstat (limited to 'src/slic3r/GUI/GUI_ObjectManipulation.hpp')
-rw-r--r--src/slic3r/GUI/GUI_ObjectManipulation.hpp23
1 files changed, 3 insertions, 20 deletions
diff --git a/src/slic3r/GUI/GUI_ObjectManipulation.hpp b/src/slic3r/GUI/GUI_ObjectManipulation.hpp
index e93ce1ffb..833070e03 100644
--- a/src/slic3r/GUI/GUI_ObjectManipulation.hpp
+++ b/src/slic3r/GUI/GUI_ObjectManipulation.hpp
@@ -32,22 +32,6 @@ class ObjectManipulation : public OG_Settings
wxString rotate_label_string;
wxString scale_label_string;
- struct Instance
- {
- int object_idx;
- int instance_idx;
- Vec3d box_size;
-
- Instance() { reset(); }
- void reset() { this->object_idx = -1; this->instance_idx = -1; this->box_size = Vec3d::Zero(); }
- void set(int object_idx, int instance_idx, const Vec3d& box_size) { this->object_idx = object_idx; this->instance_idx = instance_idx; this->box_size = box_size; }
- bool matches(int object_idx, int instance_idx) const { return (this->object_idx == object_idx) && (this->instance_idx == instance_idx); }
- bool matches_object(int object_idx) const { return (this->object_idx == object_idx); }
- bool matches_instance(int instance_idx) const { return (this->instance_idx == instance_idx); }
- };
-
- Instance instance;
-
Cache() { reset(); }
void reset()
{
@@ -58,7 +42,6 @@ class ObjectManipulation : public OG_Settings
move_label_string = wxString();
rotate_label_string = wxString();
scale_label_string = wxString();
- instance.reset();
}
bool is_valid() const { return position != Vec3d(DBL_MAX, DBL_MAX, DBL_MAX); }
};
@@ -99,8 +82,7 @@ public:
bool IsShown() override;
void UpdateAndShow(const bool show) override;
- void update_settings_value(const Selection& selection);
-
+ void set_dirty() { m_dirty = true; }
// Called from the App to update the UI if dirty.
void update_if_dirty();
@@ -120,6 +102,7 @@ public:
private:
void reset_settings_value();
+ void update_settings_value(const Selection& selection);
// update size values after scale unit changing or "gizmos"
void update_size_value(const Vec3d& size);
@@ -131,7 +114,7 @@ private:
void change_rotation_value(int axis, double value);
void change_scale_value(int axis, double value);
void change_size_value(int axis, double value);
- void do_scale(const Vec3d &scale) const;
+ void do_scale(int axis, const Vec3d &scale) const;
void on_change(t_config_option_key opt_key, const boost::any& value);
void on_fill_empty_value(const std::string& opt_key);