diff --git a/xs/src/libslic3r/Layer.hpp b/xs/src/libslic3r/Layer.hpp index bf7aa7544..295c3b159 100644 --- a/xs/src/libslic3r/Layer.hpp +++ b/xs/src/libslic3r/Layer.hpp @@ -137,6 +137,9 @@ class Layer { void detect_surfaces_type(); /// Processes the external surfaces void process_external_surfaces(); + + /// polymorphic id + virtual bool is_support() const { return false;} protected: size_t _id; ///< sequential number of layer, 0-based @@ -169,6 +172,9 @@ class SupportLayer : public Layer { /// Populated in SupportMaterial.pm in sub generate_toolpaths ExtrusionEntityCollection support_interface_fills; + /// polymorphic id + bool is_support() const override { return true;} + protected: /// Constructor SupportLayer(size_t id, PrintObject *object, coordf_t height,