FIX: crash when add modifier(load from file)
Change-Id: I6e6a7e10d4362fd14af70b7f8f4e9c6bc442aa25
This commit is contained in:
parent
65ea350f01
commit
00b5a1db3a
|
@ -1967,7 +1967,7 @@ void ObjectList::load_modifier(const wxArrayString& input_files, ModelObject& mo
|
|||
|
||||
Model model;
|
||||
try {
|
||||
model = Model::read_from_file(input_file);
|
||||
model = Model::read_from_file(input_file, nullptr, nullptr, LoadStrategy::LoadModel);
|
||||
}
|
||||
catch (std::exception& e) {
|
||||
auto msg = _L("Error!") + " " + input_file + " : " + e.what() + ".";
|
||||
|
|
Loading…
Reference in New Issue