mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-27 04:42:33 +00:00
Launching and directly loading GCode will result in missing information. (#8745)
Fix the issue where launching the software and directly loading a GCode file fails to display inner and outer wall information.
This commit is contained in:
@@ -2942,6 +2942,7 @@ void Print::export_gcode_from_previous_file(const std::string& file, GCodeProces
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
GCodeProcessor processor;
|
GCodeProcessor processor;
|
||||||
|
GCodeProcessor::s_IsBBLPrinter = is_BBL_printer();
|
||||||
const Vec3d origin = this->get_plate_origin();
|
const Vec3d origin = this->get_plate_origin();
|
||||||
processor.set_xy_offset(origin(0), origin(1));
|
processor.set_xy_offset(origin(0), origin(1));
|
||||||
//processor.enable_producers(true);
|
//processor.enable_producers(true);
|
||||||
|
|||||||
@@ -10225,6 +10225,7 @@ void Plater::load_gcode(const wxString& filename)
|
|||||||
GCodeProcessor processor;
|
GCodeProcessor processor;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
GCodeProcessor::s_IsBBLPrinter = wxGetApp().preset_bundle->is_bbl_vendor();
|
||||||
processor.process_file(filename.ToUTF8().data());
|
processor.process_file(filename.ToUTF8().data());
|
||||||
}
|
}
|
||||||
catch (const std::exception& ex)
|
catch (const std::exception& ex)
|
||||||
|
|||||||
Reference in New Issue
Block a user