mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-14 05:36:02 +08:00
FIX: crash when loading stl file for modifier
Change-Id: If358e1a8bca908c2c4dda4a95510163867f56eb4
This commit is contained in:
parent
6968eb5d82
commit
7dda18fed8
@ -1990,6 +1990,7 @@ void ObjectList::load_modifier(const wxArrayString& input_files, ModelObject& mo
|
||||
}
|
||||
}
|
||||
|
||||
model.add_default_instances();
|
||||
TriangleMesh mesh = model.mesh();
|
||||
// Mesh will be centered when loading.
|
||||
ModelVolume* new_volume = model_object.add_volume(std::move(mesh), type);
|
||||
|
Loading…
x
Reference in New Issue
Block a user