WIP: Organic Supports & Raft

Object is lifted, trees are routed to the ground.
This commit is contained in:
Vojtech Bubnik 2023-02-23 13:52:39 +01:00
parent b767c76adb
commit 825c954b44
7 changed files with 203 additions and 126 deletions

View file

@ -2226,9 +2226,11 @@ void PrintObject::combine_infill()
void PrintObject::_generate_support_material()
{
if (m_config.support_material_style == smsTree || m_config.support_material_style == smsOrganic) {
if (this->has_support() && (m_config.support_material_style == smsTree || m_config.support_material_style == smsOrganic)) {
fff_tree_support_generate(*this, std::function<void()>([this](){ this->throw_if_canceled(); }));
} else {
// If support style is set to Organic however only raft will be built but no support,
// build snug raft instead.
PrintObjectSupportMaterial support_material(this, m_slicing_params);
support_material.generate(*this);
}