From 610efb34d31658786b9acdffa66420a508caa253 Mon Sep 17 00:00:00 2001 From: supermerill Date: Wed, 29 May 2024 15:46:39 +0200 Subject: [PATCH] fix multipath can_reverse supermerill/SuperSlicer#4217 --- src/libslic3r/ExtrusionEntity.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libslic3r/ExtrusionEntity.hpp b/src/libslic3r/ExtrusionEntity.hpp index 08718a2f70c..3157a2e3df5 100644 --- a/src/libslic3r/ExtrusionEntity.hpp +++ b/src/libslic3r/ExtrusionEntity.hpp @@ -336,8 +336,8 @@ class ExtrusionMultiEntity : public ExtrusionEntity { std::vector paths; ExtrusionMultiEntity(): ExtrusionEntity(false) {}; - ExtrusionMultiEntity(const ExtrusionMultiEntity &rhs) : paths(rhs.paths), ExtrusionEntity(false) {} - ExtrusionMultiEntity(ExtrusionMultiEntity &&rhs) : paths(std::move(rhs.paths)), ExtrusionEntity(false) {} + ExtrusionMultiEntity(const ExtrusionMultiEntity &rhs) : paths(rhs.paths), ExtrusionEntity(rhs.m_can_reverse) {} + ExtrusionMultiEntity(ExtrusionMultiEntity &&rhs) : paths(std::move(rhs.paths)), ExtrusionEntity(rhs.m_can_reverse) {} ExtrusionMultiEntity(const std::vector &paths) : paths(paths), ExtrusionEntity(false) {}; ExtrusionMultiEntity(const THING &path): ExtrusionEntity(false) { this->paths.push_back(path); }