Deleted default value in Plater::export_gcode(bool prefer_removable). Only place where it is not sure what value should be is in btn_reslice - i chose true
This commit is contained in:
parent
1dc3561e2c
commit
864ecf750c
@ -909,7 +909,7 @@ void MainFrame::init_menubar()
|
|||||||
|
|
||||||
wxMenu* export_menu = new wxMenu();
|
wxMenu* export_menu = new wxMenu();
|
||||||
wxMenuItem* item_export_gcode = append_menu_item(export_menu, wxID_ANY, _(L("Export &G-code")) + dots +"\tCtrl+G", _(L("Export current plate as G-code")),
|
wxMenuItem* item_export_gcode = append_menu_item(export_menu, wxID_ANY, _(L("Export &G-code")) + dots +"\tCtrl+G", _(L("Export current plate as G-code")),
|
||||||
[this](wxCommandEvent&) { if (m_plater) m_plater->export_gcode(); }, "export_gcode", nullptr,
|
[this](wxCommandEvent&) { if (m_plater) m_plater->export_gcode(false); }, "export_gcode", nullptr,
|
||||||
[this](){return can_export_gcode(); }, this);
|
[this](){return can_export_gcode(); }, this);
|
||||||
m_changeable_menu_items.push_back(item_export_gcode);
|
m_changeable_menu_items.push_back(item_export_gcode);
|
||||||
wxMenuItem* item_send_gcode = append_menu_item(export_menu, wxID_ANY, _(L("S&end G-code")) + dots +"\tCtrl+Shift+G", _(L("Send to print current plate as G-code")),
|
wxMenuItem* item_send_gcode = append_menu_item(export_menu, wxID_ANY, _(L("S&end G-code")) + dots +"\tCtrl+Shift+G", _(L("Send to print current plate as G-code")),
|
||||||
|
@ -929,7 +929,7 @@ Sidebar::Sidebar(Plater *parent)
|
|||||||
{
|
{
|
||||||
const bool export_gcode_after_slicing = wxGetKeyState(WXK_SHIFT);
|
const bool export_gcode_after_slicing = wxGetKeyState(WXK_SHIFT);
|
||||||
if (export_gcode_after_slicing)
|
if (export_gcode_after_slicing)
|
||||||
p->plater->export_gcode();
|
p->plater->export_gcode(true);
|
||||||
else
|
else
|
||||||
p->plater->reslice();
|
p->plater->reslice();
|
||||||
p->plater->select_view_3D("Preview");
|
p->plater->select_view_3D("Preview");
|
||||||
|
@ -220,7 +220,7 @@ public:
|
|||||||
|
|
||||||
void cut(size_t obj_idx, size_t instance_idx, coordf_t z, bool keep_upper = true, bool keep_lower = true, bool rotate_lower = false);
|
void cut(size_t obj_idx, size_t instance_idx, coordf_t z, bool keep_upper = true, bool keep_lower = true, bool rotate_lower = false);
|
||||||
|
|
||||||
void export_gcode(bool prefer_removable = true);
|
void export_gcode(bool prefer_removable);
|
||||||
void export_stl(bool extended = false, bool selection_only = false);
|
void export_stl(bool extended = false, bool selection_only = false);
|
||||||
void export_amf();
|
void export_amf();
|
||||||
void export_3mf(const boost::filesystem::path& output_path = boost::filesystem::path());
|
void export_3mf(const boost::filesystem::path& output_path = boost::filesystem::path());
|
||||||
|
Loading…
Reference in New Issue
Block a user