Check for existence of gcode toolpaths that can be exported to obj file

This commit is contained in:
Enrico Turri 2019-08-20 11:33:58 +02:00
parent a99a89a831
commit 58473f84ee
7 changed files with 52 additions and 12 deletions

View file

@ -247,7 +247,7 @@ bool MainFrame::can_export_model() const
bool MainFrame::can_export_toolpaths() const
{
return (m_plater != nullptr) && (m_plater->printer_technology() == ptFFF) && m_plater->is_preview_shown() && m_plater->is_preview_loaded();
return (m_plater != nullptr) && (m_plater->printer_technology() == ptFFF) && m_plater->is_preview_shown() && m_plater->is_preview_loaded() && m_plater->has_toolpaths_to_export();
}
bool MainFrame::can_export_supports() const