Revert of 117df134f6
This commit is contained in:
parent
afbbb36fa4
commit
aaf47884cd
1 changed files with 2 additions and 2 deletions
|
@ -2442,7 +2442,7 @@ std::vector<size_t> Plater::priv::load_files(const std::vector<fs::path>& input_
|
||||||
for (ModelObject* model_object : model.objects) {
|
for (ModelObject* model_object : model.objects) {
|
||||||
if (!type_3mf && !type_zip_amf)
|
if (!type_3mf && !type_zip_amf)
|
||||||
model_object->center_around_origin(false);
|
model_object->center_around_origin(false);
|
||||||
model_object->ensure_on_bed(is_project_file || type_3mf || type_zip_amf);
|
model_object->ensure_on_bed(is_project_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
// check multi-part object adding for the SLA-printing
|
// check multi-part object adding for the SLA-printing
|
||||||
|
@ -2459,7 +2459,7 @@ std::vector<size_t> Plater::priv::load_files(const std::vector<fs::path>& input_
|
||||||
if (one_by_one) {
|
if (one_by_one) {
|
||||||
if (type_3mf && !is_project_file)
|
if (type_3mf && !is_project_file)
|
||||||
model.center_instances_around_point(bed_shape_bb().center());
|
model.center_instances_around_point(bed_shape_bb().center());
|
||||||
auto loaded_idxs = load_model_objects(model.objects, is_project_file || type_3mf || type_zip_amf);
|
auto loaded_idxs = load_model_objects(model.objects, is_project_file);
|
||||||
obj_idxs.insert(obj_idxs.end(), loaded_idxs.begin(), loaded_idxs.end());
|
obj_idxs.insert(obj_idxs.end(), loaded_idxs.begin(), loaded_idxs.end());
|
||||||
} else {
|
} else {
|
||||||
// This must be an .stl or .obj file, which may contain a maximum of one volume.
|
// This must be an .stl or .obj file, which may contain a maximum of one volume.
|
||||||
|
|
Loading…
Add table
Reference in a new issue