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
(cherry picked from commit 1106ff8253)
This commit is contained in:
Arthur 2023-11-28 17:17:11 +08:00 committed by Noisyfox
parent e8d4291e02
commit c443951f30

View file

@ -3367,6 +3367,9 @@ static void generate_support_areas(Print &print, const BuildVolume &build_volume
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;
// Don't override the support density of tree supports, as the support density is used for raft. // Don't override the support density of tree supports, as the support density is used for raft.