Fix of #1745
This commit is contained in:
parent
6ab6829b8d
commit
bdde20b433
1 changed files with 1 additions and 1 deletions
|
@ -1445,7 +1445,7 @@ int ModelVolume::extruder_id() const
|
||||||
int extruder_id = -1;
|
int extruder_id = -1;
|
||||||
if (this->is_model_part()) {
|
if (this->is_model_part()) {
|
||||||
const ConfigOption *opt = this->config.option("extruder");
|
const ConfigOption *opt = this->config.option("extruder");
|
||||||
if (opt == nullptr)
|
if ((opt == nullptr) || (opt->getInt() == 0))
|
||||||
opt = this->object->config.option("extruder");
|
opt = this->object->config.option("extruder");
|
||||||
extruder_id = (opt == nullptr) ? 0 : opt->getInt();
|
extruder_id = (opt == nullptr) ? 0 : opt->getInt();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue