Proper hiding of the SLA supports gizmo in FDM mode

This commit is contained in:
Lukas Matena 2018-11-15 18:15:27 +01:00
parent 58bfd29ea8
commit 8b201d0f2e
2 changed files with 6 additions and 0 deletions

View file

@ -5,6 +5,7 @@
#include "GUI_App.hpp"
#include "../../libslic3r/Utils.hpp"
#include "PresetBundle.hpp"
#include <Eigen/Dense>
#include "../../libslic3r/Geometry.hpp"
@ -1759,6 +1760,10 @@ void GLGizmoSlaSupports::render_tooltip_texture() const {
::glEnable(GL_DEPTH_TEST);
}
bool GLGizmoSlaSupports::on_is_activable(const GLCanvas3D::Selection& selection) const
{
return (wxGetApp().preset_bundle->printers.get_edited_preset().printer_technology() == ptSLA);
}
std::string GLGizmoSlaSupports::on_get_name() const
{