Organic supports: Added check for variable layer height, with which
Organic supports are not compatible. Fixes #9528 and similar. Moved the object max Z against build volume Z to Print::validate(). Updated layer_height_profile_from_ranges() to compress the resulting ranges.
This commit is contained in:
parent
79d5a38928
commit
5b94971fce
6 changed files with 135 additions and 58 deletions
|
@ -1792,6 +1792,8 @@ bool PrintObject::update_layer_height_profile(const ModelObject &model_object, c
|
|||
// use the constructor because the assignement is crashing on ASAN OsX
|
||||
layer_height_profile = std::vector<coordf_t>(model_object.layer_height_profile.get());
|
||||
// layer_height_profile = model_object.layer_height_profile;
|
||||
// The layer height returned is sampled with high density for the UI layer height painting
|
||||
// and smoothing tool to work.
|
||||
updated = true;
|
||||
}
|
||||
|
||||
|
@ -1806,6 +1808,7 @@ bool PrintObject::update_layer_height_profile(const ModelObject &model_object, c
|
|||
if (layer_height_profile.empty()) {
|
||||
//layer_height_profile = layer_height_profile_adaptive(slicing_parameters, model_object.layer_config_ranges, model_object.volumes);
|
||||
layer_height_profile = layer_height_profile_from_ranges(slicing_parameters, model_object.layer_config_ranges);
|
||||
// The layer height profile is already compressed.
|
||||
updated = true;
|
||||
}
|
||||
return updated;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue