From f93cefb66882ead26d2c0c990e5a4cb78671587d Mon Sep 17 00:00:00 2001 From: Filip Sykala - NTB T15p Date: Tue, 19 Jul 2022 14:05:30 +0200 Subject: [PATCH] add getter on mesh shared ptr(suggested by @Vojta) --- src/libslic3r/Model.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libslic3r/Model.hpp b/src/libslic3r/Model.hpp index 4ebbef1b9..feb325cb6 100644 --- a/src/libslic3r/Model.hpp +++ b/src/libslic3r/Model.hpp @@ -617,7 +617,8 @@ public: void set_mesh(indexed_triangle_set &&mesh) { m_mesh = std::make_shared(std::move(mesh)); } void set_mesh(std::shared_ptr &mesh) { m_mesh = mesh; } void set_mesh(std::unique_ptr &&mesh) { m_mesh = std::move(mesh); } - void reset_mesh() { m_mesh = std::make_shared(); } + void reset_mesh() { m_mesh = std::make_shared(); } + const std::shared_ptr& get_mesh_shared_ptr() const { return m_mesh; } // Configuration parameters specific to an object model geometry or a modifier volume, // overriding the global Slic3r settings and the ModelObject settings. ModelConfigObject config;