@@ -1385,6 +1385,28 @@ wxWindow* PreferencesDialog::create_general_page()
13851385 auto item_gamma_correct_in_import_obj = create_item_checkbox (_L (" Enable gamma correction for the imported obj file" ), page,
13861386 _L (" Perform gamma correction on color after importing the obj model." ), 50 ,
13871387 " gamma_correct_in_import_obj" );
1388+
1389+ std::vector<wxString> standard_3mf_color_import_labels = {
1390+ _L (" Ask every time" ),
1391+ _L (" Apply automatic color mapping" ),
1392+ _L (" Import geometry only" )
1393+ };
1394+ std::vector<std::string> standard_3mf_color_import_values = {
1395+ " ask" ,
1396+ " auto" ,
1397+ " geometry_only"
1398+ };
1399+ auto item_standard_3mf_color_import = create_item_combobox (
1400+ _L (" Standard 3MF color import" ),
1401+ page,
1402+ _L (" Choose how color information from standard 3MF files is handled during import." ),
1403+ " standard_3mf_color_import_mode" ,
1404+ standard_3mf_color_import_labels,
1405+ standard_3mf_color_import_values,
1406+ nullptr ,
1407+ FromDIP (180 ),
1408+ FromDIP (190 ));
1409+
13881410 auto item_enable_record_gcodeviewer_option_item = create_item_checkbox (_L (" Remember last used color scheme" ), page,
13891411 _L (" When enabled, the last used color scheme (e.g., Line Type, Speed) will be automatically applied on next startup." ), 50 ,
13901412 " enable_record_gcodeviewer_option_item" );
@@ -1552,6 +1574,7 @@ wxWindow* PreferencesDialog::create_general_page()
15521574 sizer_page->Add (item_show_shells_in_preview_settings, 0 , wxTOP, FromDIP (3 ));
15531575 sizer_page->Add (item_import_single_svg_and_split, 0 , wxTOP, FromDIP (3 ));
15541576 sizer_page->Add (item_gamma_correct_in_import_obj, 0 , wxTOP, FromDIP (3 ));
1577+ sizer_page->Add (item_standard_3mf_color_import, 0 , wxTOP, FromDIP (3 ));
15551578 sizer_page->Add (item_enable_record_gcodeviewer_option_item, 0 , wxTOP, FromDIP (3 ));
15561579 sizer_page->Add (enable_assemble_view_preview_settings, 0 , wxTOP, FromDIP (3 ));
15571580#if !BBL_RELEASE_TO_PUBLIC
0 commit comments