@@ -1377,13 +1377,15 @@ void GCode::_do_export(Print& print_mod, GCodeOutputStream &file, ThumbnailsGene
13771377 const ConfigOptionBool* thumbnails_end_file = print.full_print_config ().option <ConfigOptionBool>(" thumbnails_end_file" );
13781378 if (!thumbnails_end_file || !thumbnails_end_file->value ) {
13791379 const ConfigOptionBool* thumbnails_with_bed = print.full_print_config ().option <ConfigOptionBool>(" thumbnails_with_bed" );
1380+ const ConfigOptionBool* thumbnails_tag_with_format = print.full_print_config ().option <ConfigOptionBool>(" thumbnails_tag_format" );
13801381 const ConfigOptionEnum<GCodeThumbnailsFormat>* thumbnails_format = print.full_print_config ().option <ConfigOptionEnum<GCodeThumbnailsFormat>>(" thumbnails_format" );
13811382 // Unit tests or command line slicing may not define "thumbnails" or "thumbnails_format".
13821383 // If "thumbnails_format" is not defined, export to PNG.
13831384 GCodeThumbnails::export_thumbnails_to_file (thumbnail_cb,
13841385 print.full_print_config ().option <ConfigOptionPoints>(" thumbnails" )->values ,
1385- thumbnails_with_bed == nullptr ? false : thumbnails_with_bed->value ,
1386+ thumbnails_with_bed ? thumbnails_with_bed->value : false ,
13861387 thumbnails_format ? thumbnails_format->value : GCodeThumbnailsFormat::PNG,
1388+ thumbnails_tag_with_format ? thumbnails_tag_with_format->value : false ,
13871389 [&file](const char * sz) { file.write (sz); },
13881390 [&print]() { print.throw_if_canceled (); });
13891391 }
@@ -2085,13 +2087,15 @@ void GCode::_do_export(Print& print_mod, GCodeOutputStream &file, ThumbnailsGene
20852087 // print thumbnails at the end instead of the start if requested
20862088 if (thumbnails_end_file && thumbnails_end_file->value ) {
20872089 const ConfigOptionBool* thumbnails_with_bed = print.full_print_config ().option <ConfigOptionBool>(" thumbnails_with_bed" );
2090+ const ConfigOptionBool* thumbnails_tag_with_format = print.full_print_config ().option <ConfigOptionBool>(" thumbnails_tag_format" );
20882091 const ConfigOptionEnum<GCodeThumbnailsFormat>* thumbnails_format = print.full_print_config ().option <ConfigOptionEnum<GCodeThumbnailsFormat>>(" thumbnails_format" );
20892092 // Unit tests or command line slicing may not define "thumbnails" or "thumbnails_format".
20902093 // If "thumbnails_format" is not defined, export to PNG.
20912094 GCodeThumbnails::export_thumbnails_to_file (thumbnail_cb,
20922095 print.full_print_config ().option <ConfigOptionPoints>(" thumbnails" )->values ,
2093- thumbnails_with_bed== nullptr ? false : thumbnails_with_bed->value ,
2096+ thumbnails_with_bed ? thumbnails_with_bed->value : false ,
20942097 thumbnails_format ? thumbnails_format->value : GCodeThumbnailsFormat::PNG,
2098+ thumbnails_tag_with_format ? thumbnails_tag_with_format->value : false ,
20952099 [&file](const char * sz) { file.write (sz); },
20962100 [&print]() { print.throw_if_canceled (); });
20972101 }
@@ -5436,7 +5440,7 @@ double_t GCode::_compute_speed_mm_per_sec(const ExtrusionPath& path, double spee
54365440
54375441
54385442void GCode::cooldown_marker_init () {
5439- if (! _cooldown_marker_speed[ExtrusionRole::erExternalPerimeter].empty ()) {
5443+ if (_cooldown_marker_speed[ExtrusionRole::erExternalPerimeter].empty ()) {
54405444 std::string allow_speed_change = " ;CM_extrude_speed;_EXTRUDE_SET_SPEED" ;
54415445 // only change speed on external perimeter (and similar) speed if really necessary.
54425446 std::string maybe_allow_speed_change = " ;CM_extrude_speed_external;_EXTRUDE_SET_SPEED_MAYBE" ;
0 commit comments