ENH:center display ObjColorDialog

jira: STUDIO-9273
Change-Id: I3a5e8eeedf184b14c6aaa2ab655c4aa1bb01c02f
This commit is contained in:
zhou.xu 2024-12-19 20:17:00 +08:00 committed by lane.wei
parent e7b9e81e84
commit 119610121c

View File

@ -4996,6 +4996,7 @@ std::vector<size_t> Plater::priv::load_files(const std::vector<fs::path>& input_
if (!boost::iends_with(path.string(), ".obj")) { return; } if (!boost::iends_with(path.string(), ".obj")) { return; }
const std::vector<std::string> extruder_colours = wxGetApp().plater()->get_extruder_colors_from_plater_config(); const std::vector<std::string> extruder_colours = wxGetApp().plater()->get_extruder_colors_from_plater_config();
ObjColorDialog color_dlg(nullptr, in_out, extruder_colours); ObjColorDialog color_dlg(nullptr, in_out, extruder_colours);
color_dlg.CenterOnScreen();
if (color_dlg.ShowModal() != wxID_OK) { if (color_dlg.ShowModal() != wxID_OK) {
in_out.filament_ids.clear(); in_out.filament_ids.clear();
} }