FIX: organic support not work with raft only

There is no raft generated when only raft enabled but no support needed.
jira: none

Change-Id: Ic0c9269e2f98038d85c9bc54e4a85f892dc5d764
This commit is contained in:
Arthur 2023-11-28 17:17:11 +08:00 committed by Lane.Wei
parent 8ecafa356f
commit 1106ff8253
1 changed files with 3 additions and 2 deletions

View File

@ -4183,13 +4183,14 @@ static void generate_support_areas(Print &print, TreeSupport* tree_support, cons
#endif
// ### Precalculate avoidances, collision etc.
size_t num_support_layers = precalculate(print, overhangs, processing.first, processing.second, volumes, throw_on_cancel);
if (num_support_layers == 0)
continue;
bool has_support = num_support_layers > 0;
bool has_raft = config.raft_layers.size() > 0;
num_support_layers = std::max(num_support_layers, config.raft_layers.size());
if (num_support_layers == 0)
continue;
SupportParameters support_params(print_object);
support_params.with_sheath = true;
// organic support default pattern is none.