File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 8
8
#include " slic3r/GUI/format.hpp"
9
9
#include " slic3r/GUI/WebView.hpp"
10
10
#include " slic3r/GUI/MsgDialog.hpp"
11
+ #include " slic3r/GUI/Field.hpp"
11
12
12
13
#include < wx/webview.h>
13
14
@@ -1276,7 +1277,9 @@ void PrinterPickWebViewDialog::request_compatible_printers_FFF()
1276
1277
// }
1277
1278
const Preset& selected_printer = wxGetApp ().preset_bundle ->printers .get_selected_preset ();
1278
1279
const Preset& selected_filament = wxGetApp ().preset_bundle ->filaments .get_selected_preset ();
1279
- std::string nozzle_diameter_serialized = selected_printer.config .opt_string (" printer_variant" );
1280
+ double nozzle_diameter = static_cast <const ConfigOptionFloats*>(selected_printer.config .option (" nozzle_diameter" ))->values [0 ];
1281
+ wxString nozzle_diameter_serialized = double_to_string (nozzle_diameter);
1282
+ nozzle_diameter_serialized.Replace (L" ," , L" ." );
1280
1283
// Sending only first filament type for now. This should change to array of values
1281
1284
const std::string filament_type_serialized = selected_filament.config .option (" filament_type" )->serialize ();
1282
1285
const std::string printer_model_serialized = selected_printer.config .option (" printer_model" )->serialize ();
You can’t perform that action at this time.
0 commit comments