mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
Follow-up of 70478f226f
-> Fixed printbed for regular gcode preview
This commit is contained in:
parent
70478f226f
commit
ea0e9a5873
1 changed files with 12 additions and 10 deletions
|
@ -253,6 +253,7 @@ void GCodeViewer::load(const GCodeProcessor::Result& gcode_result, const Print&
|
||||||
load_shells(print, initialized);
|
load_shells(print, initialized);
|
||||||
|
|
||||||
#if ENABLE_GCODE_VIEWER_AS_STATE
|
#if ENABLE_GCODE_VIEWER_AS_STATE
|
||||||
|
if (wxGetApp().mainframe->get_mode() == MainFrame::EMode::GCodeViewer) {
|
||||||
// adjust printbed size
|
// adjust printbed size
|
||||||
const double margin = 10.0;
|
const double margin = 10.0;
|
||||||
Vec2d min(m_bounding_box.min(0) - margin, m_bounding_box.min(1) - margin);
|
Vec2d min(m_bounding_box.min(0) - margin, m_bounding_box.min(1) - margin);
|
||||||
|
@ -263,6 +264,7 @@ void GCodeViewer::load(const GCodeProcessor::Result& gcode_result, const Print&
|
||||||
{ max(0), max(1) },
|
{ max(0), max(1) },
|
||||||
{ min(0), max(1) } };
|
{ min(0), max(1) } };
|
||||||
wxGetApp().plater()->set_bed_shape(bed_shape, "", "");
|
wxGetApp().plater()->set_bed_shape(bed_shape, "", "");
|
||||||
|
}
|
||||||
#endif // ENABLE_GCODE_VIEWER_AS_STATE
|
#endif // ENABLE_GCODE_VIEWER_AS_STATE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue