mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
GCodeViewer -> Export of extrude toolpaths to obj files
This commit is contained in:
parent
feb4857cf8
commit
0b1086f390
6 changed files with 300 additions and 10 deletions
|
@ -4349,12 +4349,20 @@ void GLCanvas3D::update_tooltip_for_settings_item_in_main_toolbar()
|
|||
|
||||
bool GLCanvas3D::has_toolpaths_to_export() const
|
||||
{
|
||||
#if ENABLE_GCODE_VIEWER
|
||||
return m_gcode_viewer.has_data();
|
||||
#else
|
||||
return m_volumes.has_toolpaths_to_export();
|
||||
#endif // ENABLE_GCODE_VIEWER
|
||||
}
|
||||
|
||||
void GLCanvas3D::export_toolpaths_to_obj(const char* filename) const
|
||||
{
|
||||
#if ENABLE_GCODE_VIEWER
|
||||
m_gcode_viewer.export_toolpaths_to_obj(filename);
|
||||
#else
|
||||
m_volumes.export_toolpaths_to_obj(filename);
|
||||
#endif // ENABLE_GCODE_VIEWER
|
||||
}
|
||||
|
||||
void GLCanvas3D::mouse_up_cleanup()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue