CutGizmo: Fixed clipper behavior after slicing in SLA mode
This commit is contained in:
parent
53af45a18e
commit
b173927ad1
@ -2412,5 +2412,12 @@ CommonGizmosDataID GLGizmoCut3D::on_get_requirements() const {
|
||||
| int(CommonGizmosDataID::Raycaster));
|
||||
}
|
||||
|
||||
void GLGizmoCut3D::data_changed()
|
||||
{
|
||||
if (auto oc = m_c->object_clipper())
|
||||
oc->set_behavior(m_connectors_editing, m_connectors_editing, double(m_contour_width));
|
||||
}
|
||||
|
||||
|
||||
} // namespace GUI
|
||||
} // namespace Slic3r
|
||||
|
@ -233,6 +233,8 @@ protected:
|
||||
std::string get_gizmo_leaving_text() const override { return _u8L("Leaving Cut gizmo"); }
|
||||
std::string get_action_snapshot_name() override { return _u8L("Cut gizmo editing"); }
|
||||
|
||||
void data_changed() override;
|
||||
|
||||
private:
|
||||
void set_center(const Vec3d& center);
|
||||
bool render_combo(const std::string& label, const std::vector<std::string>& lines, size_t& selection_idx);
|
||||
|
Loading…
Reference in New Issue
Block a user