mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 11:23:42 +00:00
FIX: Client crash when opening certain model or select certain item in the comparator dropdown menu
Jira: STUDIO-13491 Change-Id: I40e9cb406fa1b26da9a6527ff5b0bc68d9b10a52 (cherry picked from commit 11f520e44b0ee74abef3433d2b8fefcdd326cb26)
This commit is contained in:
@@ -5543,6 +5543,7 @@ std::vector<size_t> Plater::priv::load_files(const std::vector<fs::path>& input_
|
|||||||
this->preview->update_gcode_result(partplate_list.get_current_slice_result());
|
this->preview->update_gcode_result(partplate_list.get_current_slice_result());
|
||||||
release_PlateData_list(plate_data);
|
release_PlateData_list(plate_data);
|
||||||
sidebar->obj_list()->reload_all_plates();
|
sidebar->obj_list()->reload_all_plates();
|
||||||
|
q->suppress_background_process(true);
|
||||||
} else {
|
} else {
|
||||||
partplate_list.reload_all_objects();
|
partplate_list.reload_all_objects();
|
||||||
}
|
}
|
||||||
@@ -6305,6 +6306,7 @@ std::vector<size_t> Plater::priv::load_files(const std::vector<fs::path>& input_
|
|||||||
if (msg.ShowModal() == wxID_YES) {}
|
if (msg.ShowModal() == wxID_YES) {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
q->schedule_background_process(true);
|
||||||
return obj_idxs;
|
return obj_idxs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1212,6 +1212,9 @@ static wxString get_string_value(std::string opt_key, const DynamicPrintConfig&
|
|||||||
opt_idx = orig_opt_idx >= 0 ? orig_opt_idx : 0;
|
opt_idx = orig_opt_idx >= 0 ? orig_opt_idx : 0;
|
||||||
opt_key = get_pure_opt_key(opt_key);
|
opt_key = get_pure_opt_key(opt_key);
|
||||||
auto option = config.option(opt_key);
|
auto option = config.option(opt_key);
|
||||||
|
if (!option) {
|
||||||
|
return _L("N/A");
|
||||||
|
}
|
||||||
|
|
||||||
if (option->is_scalar() && config.option(opt_key)->is_nil() ||
|
if (option->is_scalar() && config.option(opt_key)->is_nil() ||
|
||||||
option->is_vector() && dynamic_cast<const ConfigOptionVectorBase *>(config.option(opt_key))->is_nil(opt_idx))
|
option->is_vector() && dynamic_cast<const ConfigOptionVectorBase *>(config.option(opt_key))->is_nil(opt_idx))
|
||||||
|
|||||||
Reference in New Issue
Block a user