CutGizmo: Fixed clipper behavior after slicing in SLA mode

This commit is contained in:
YuSanka 2023-01-31 15:53:43 +01:00
parent 53af45a18e
commit b173927ad1
2 changed files with 9 additions and 0 deletions

View File

@ -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

View File

@ -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);