1) Added new tech ENABLE_ADAPTIVE_LAYER_HEIGHT_PROFILE

2) Imgui dialog replaces texture for reset button and tooltip when layer editing is active
This commit is contained in:
Enrico Turri 2019-11-07 15:55:45 +01:00
parent 1e8aa54559
commit 6e4060569a
5 changed files with 132 additions and 12 deletions

View file

@ -1522,9 +1522,12 @@ bool PrintObject::update_layer_height_profile(const ModelObject &model_object, c
layer_height_profile.clear();
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);
updated = true;
//#if ENABLE_ADAPTIVE_LAYER_HEIGHT_PROFILE
// layer_height_profile = layer_height_profile_adaptive(slicing_parameters, model_object.layer_config_ranges, model_object.volumes);
//#else
layer_height_profile = layer_height_profile_from_ranges(slicing_parameters, model_object.layer_config_ranges);
//#endif // ENABLE_ADAPTIVE_LAYER_HEIGHT_PROFILE
updated = true;
}
return updated;
}