Skip to content

Commit

Permalink
Launching and directly loading GCode will result in missing informati…
Browse files Browse the repository at this point in the history
…on. (#8745)

Fix the issue where launching the software and directly loading a GCode file fails to display inner and outer wall information.
  • Loading branch information
anjis-elegoo authored Mar 8, 2025
1 parent 74d9a88 commit 38fb975
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/libslic3r/Print.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2942,6 +2942,7 @@ void Print::export_gcode_from_previous_file(const std::string& file, GCodeProces
{
try {
GCodeProcessor processor;
GCodeProcessor::s_IsBBLPrinter = is_BBL_printer();
const Vec3d origin = this->get_plate_origin();
processor.set_xy_offset(origin(0), origin(1));
//processor.enable_producers(true);
Expand Down
1 change: 1 addition & 0 deletions src/slic3r/GUI/Plater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10225,6 +10225,7 @@ void Plater::load_gcode(const wxString& filename)
GCodeProcessor processor;
try
{
GCodeProcessor::s_IsBBLPrinter = wxGetApp().preset_bundle->is_bbl_vendor();
processor.process_file(filename.ToUTF8().data());
}
catch (const std::exception& ex)
Expand Down

0 comments on commit 38fb975

Please sign in to comment.