Seam gizmo created on frontend

This commit is contained in:
Lukas Matena 2020-08-31 07:25:12 +02:00
parent db7559157c
commit 01b59ff57b
12 changed files with 323 additions and 37 deletions

View file

@ -18,13 +18,6 @@ namespace GUI {
void GLGizmoFdmSupports::on_opening()
{
}
void GLGizmoFdmSupports::on_shutdown()
{
if (m_setting_angle) {
@ -35,6 +28,13 @@ void GLGizmoFdmSupports::on_shutdown()
std::string GLGizmoFdmSupports::on_get_name() const
{
return (_(L("FDM Support Editing")) + " [L]").ToUTF8().data();
}
bool GLGizmoFdmSupports::on_init()
{
m_shortcut_key = WXK_CONTROL_L;
@ -176,12 +176,6 @@ void GLGizmoFdmSupports::on_render_input_window(float x, float y, float bottom_l
}
m_imgui->end();
if (m_setting_angle) {
m_parent.show_slope(false);
m_parent.set_slope_range({90.f - m_angle_threshold_deg, 90.f - m_angle_threshold_deg});
m_parent.use_slope(true);
m_parent.set_as_dirty();
}
}
else {
std::string name = "Autoset custom supports";