mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 01:37:53 -06:00
G-code window uses file mapping
This commit is contained in:
parent
252aa9b229
commit
0472c84525
7 changed files with 159 additions and 36 deletions
|
@ -1196,7 +1196,9 @@ GLCanvas3D::GLCanvas3D(wxGLCanvas* canvas)
|
|||
GLCanvas3D::~GLCanvas3D()
|
||||
{
|
||||
#if ENABLE_GCODE_WINDOW
|
||||
#if !ENABLE_GCODE_WINDOW_USE_MAPPED_FILE
|
||||
m_gcode_viewer.stop_mapping_gcode_file();
|
||||
#endif // !ENABLE_GCODE_WINDOW_USE_MAPPED_FILE
|
||||
#endif // ENABLE_GCODE_WINDOW
|
||||
reset_volumes();
|
||||
}
|
||||
|
@ -3903,6 +3905,7 @@ void GLCanvas3D::mouse_up_cleanup()
|
|||
}
|
||||
|
||||
#if ENABLE_GCODE_WINDOW
|
||||
#if !ENABLE_GCODE_WINDOW_USE_MAPPED_FILE
|
||||
void GLCanvas3D::start_mapping_gcode_file()
|
||||
{
|
||||
m_gcode_viewer.start_mapping_gcode_file();
|
||||
|
@ -3912,6 +3915,7 @@ void GLCanvas3D::stop_mapping_gcode_file()
|
|||
{
|
||||
m_gcode_viewer.stop_mapping_gcode_file();
|
||||
}
|
||||
#endif // !ENABLE_GCODE_WINDOW_USE_MAPPED_FILE
|
||||
#endif // ENABLE_GCODE_WINDOW
|
||||
|
||||
bool GLCanvas3D::_is_shown_on_screen() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue