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:
parent
8ecafa356f
commit
1106ff8253
|
@ -4183,13 +4183,14 @@ static void generate_support_areas(Print &print, TreeSupport* tree_support, cons
|
||||||
#endif
|
#endif
|
||||||
// ### Precalculate avoidances, collision etc.
|
// ### Precalculate avoidances, collision etc.
|
||||||
size_t num_support_layers = precalculate(print, overhangs, processing.first, processing.second, volumes, throw_on_cancel);
|
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_support = num_support_layers > 0;
|
||||||
bool has_raft = config.raft_layers.size() > 0;
|
bool has_raft = config.raft_layers.size() > 0;
|
||||||
num_support_layers = std::max(num_support_layers, config.raft_layers.size());
|
num_support_layers = std::max(num_support_layers, config.raft_layers.size());
|
||||||
|
|
||||||
|
if (num_support_layers == 0)
|
||||||
|
continue;
|
||||||
|
|
||||||
SupportParameters support_params(print_object);
|
SupportParameters support_params(print_object);
|
||||||
support_params.with_sheath = true;
|
support_params.with_sheath = true;
|
||||||
// organic support default pattern is none.
|
// organic support default pattern is none.
|
||||||
|
|
Loading…
Reference in New Issue