From bdde20b433d2f43d41837fe73ff2588a27a5c92f Mon Sep 17 00:00:00 2001 From: Enrico Turri Date: Tue, 5 Feb 2019 15:56:06 +0100 Subject: [PATCH] Fix of #1745 --- src/libslic3r/Model.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/Model.cpp b/src/libslic3r/Model.cpp index 0dbf9dd15..422717279 100644 --- a/src/libslic3r/Model.cpp +++ b/src/libslic3r/Model.cpp @@ -1445,7 +1445,7 @@ int ModelVolume::extruder_id() const int extruder_id = -1; if (this->is_model_part()) { const ConfigOption *opt = this->config.option("extruder"); - if (opt == nullptr) + if ((opt == nullptr) || (opt->getInt() == 0)) opt = this->object->config.option("extruder"); extruder_id = (opt == nullptr) ? 0 : opt->getInt(); }