ENH:center display ObjColorDialog

jira: STUDIO-9273
Change-Id: I3a5e8eeedf184b14c6aaa2ab655c4aa1bb01c02f
(cherry picked from commit 119610121c9a2c9ea188f61836947cb8c826cf6e)
This commit is contained in:
zhou.xu 2024-12-19 20:17:00 +08:00 committed by Noisyfox
parent a66ccf7f48
commit ed6d6c807b

View file

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