mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-13 23:15:58 +08:00
Proper hiding of the SLA supports gizmo in FDM mode
This commit is contained in:
parent
58bfd29ea8
commit
8b201d0f2e
@ -5,6 +5,7 @@
|
|||||||
#include "GUI_App.hpp"
|
#include "GUI_App.hpp"
|
||||||
|
|
||||||
#include "../../libslic3r/Utils.hpp"
|
#include "../../libslic3r/Utils.hpp"
|
||||||
|
#include "PresetBundle.hpp"
|
||||||
|
|
||||||
#include <Eigen/Dense>
|
#include <Eigen/Dense>
|
||||||
#include "../../libslic3r/Geometry.hpp"
|
#include "../../libslic3r/Geometry.hpp"
|
||||||
@ -1759,6 +1760,10 @@ void GLGizmoSlaSupports::render_tooltip_texture() const {
|
|||||||
::glEnable(GL_DEPTH_TEST);
|
::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
|
std::string GLGizmoSlaSupports::on_get_name() const
|
||||||
{
|
{
|
||||||
|
@ -447,6 +447,7 @@ protected:
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::string on_get_name() const override;
|
std::string on_get_name() const override;
|
||||||
|
bool on_is_activable(const GLCanvas3D::Selection& selection) const override;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace GUI
|
} // namespace GUI
|
||||||
|
Loading…
x
Reference in New Issue
Block a user