Fixed an issue that EXCLUDE_OBJECT_DEFINE info was written into gcode file regardless

This commit is contained in:
SoftFever 2023-08-27 23:57:42 +08:00
parent 85251de418
commit 96a8f92b65

View file

@ -1634,6 +1634,7 @@ void GCode::_do_export(Print& print, GCodeOutputStream &file, ThumbnailsGenerato
file.write_format("; EXECUTABLE_BLOCK_START\n"); file.write_format("; EXECUTABLE_BLOCK_START\n");
// SoftFever // SoftFever
if( m_config.gcode_flavor.value == gcfKlipper && m_enable_exclude_object)
file.write(set_object_info(&print)); file.write(set_object_info(&print));
// adds tags for time estimators // adds tags for time estimators