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>2019-06-24 14:21:05 +0300
committerEnrico Turri <enricoturri@seznam.cz>2019-06-24 14:21:05 +0300
commit7aaba25520ea37d662ced74b465b66c394f34593 (patch)
tree32d402006b22fcd718aa31f395dfd05b8002ab79 /src/slic3r/GUI/Selection.hpp
parentfab363493140a93c1786c7898424a73dd1ed2a2e (diff)
Do not allow to copy/paste volumes when using sla printer
Diffstat (limited to 'src/slic3r/GUI/Selection.hpp')
-rw-r--r--src/slic3r/GUI/Selection.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/slic3r/GUI/Selection.hpp b/src/slic3r/GUI/Selection.hpp
index 5da1e477b..802f8d284 100644
--- a/src/slic3r/GUI/Selection.hpp
+++ b/src/slic3r/GUI/Selection.hpp
@@ -152,6 +152,8 @@ public:
void reset() { m_model.clear_objects(); }
bool is_empty() const { return m_model.objects.empty(); }
+ bool is_sla_compliant() const;
+
ModelObject* add_object() { return m_model.add_object(); }
ModelObject* get_object(unsigned int id) { return (id < (unsigned int)m_model.objects.size()) ? m_model.objects[id] : nullptr; }
const ModelObjectPtrs& get_objects() const { return m_model.objects; }
@@ -257,6 +259,7 @@ public:
bool is_mixed() const { return m_type == Mixed; }
bool is_from_single_instance() const { return get_instance_idx() != -1; }
bool is_from_single_object() const;
+ bool is_sla_compliant() const;
bool contains_volume(unsigned int volume_idx) const { return m_list.find(volume_idx) != m_list.end(); }
bool requires_uniform_scale() const;