Fixed crashing when project with modifier is imported
This commit is contained in:
parent
398f15d546
commit
d658d918d7
1 changed files with 2 additions and 1 deletions
|
@ -1123,7 +1123,8 @@ void ObjectList::add_object_to_list(size_t obj_idx)
|
||||||
m_objects_model->AddVolumeChild(item,
|
m_objects_model->AddVolumeChild(item,
|
||||||
model_object->volumes[id]->name,
|
model_object->volumes[id]->name,
|
||||||
ModelVolume::MODEL_PART,
|
ModelVolume::MODEL_PART,
|
||||||
model_object->volumes[id]->config.option<ConfigOptionInt>("extruder")->value,
|
!model_object->volumes[id]->config.has("extruder") ? 0 :
|
||||||
|
model_object->volumes[id]->config.option<ConfigOptionInt>("extruder")->value,
|
||||||
false);
|
false);
|
||||||
Expand(item);
|
Expand(item);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue