FIX: crash when add modifier(load from file)

Change-Id: I6e6a7e10d4362fd14af70b7f8f4e9c6bc442aa25
This commit is contained in:
zhimin.zeng 2023-05-19 11:31:54 +08:00 committed by Lane.Wei
parent 65ea350f01
commit 00b5a1db3a
1 changed files with 1 additions and 1 deletions

View File

@ -1967,7 +1967,7 @@ void ObjectList::load_modifier(const wxArrayString& input_files, ModelObject& mo
Model model; Model model;
try { try {
model = Model::read_from_file(input_file); model = Model::read_from_file(input_file, nullptr, nullptr, LoadStrategy::LoadModel);
} }
catch (std::exception& e) { catch (std::exception& e) {
auto msg = _L("Error!") + " " + input_file + " : " + e.what() + "."; auto msg = _L("Error!") + " " + input_file + " : " + e.what() + ".";