diff --git a/conandata.yml b/conandata.yml index 2d048e9c18..f5da580fcb 100644 --- a/conandata.yml +++ b/conandata.yml @@ -1,4 +1,4 @@ -version: "5.8.0-beta.1" +version: "5.9.0-alpha.0" requirements: - "scripta/0.1.0@ultimaker/testing" requirements_arcus: @@ -6,4 +6,4 @@ requirements_arcus: requirements_plugins: - "curaengine_grpc_definitions/0.2.1" requirements_cura_resources: - - "cura_resources/5.8.0-beta.1" + - "cura_resources/(latest)@ultimaker/testing" diff --git a/include/TreeSupportSettings.h b/include/TreeSupportSettings.h index 2e3162a71a..f74b9cffe3 100644 --- a/include/TreeSupportSettings.h +++ b/include/TreeSupportSettings.h @@ -54,7 +54,7 @@ struct TreeSupportSettings : RestPreference::BUILDPLATE) , xy_distance(mesh_group_settings.get("support_xy_distance")) , bp_radius(mesh_group_settings.get("support_tree_bp_diameter") / 2) - , diameter_scale_bp_radius(std::min(sin(0.7) * static_cast(layer_height / branch_radius), 1.0 / (branch_radius / (support_line_width / 2.0)))) + , diameter_scale_bp_radius(std::min(sin(0.7) * static_cast(layer_height) / static_cast(branch_radius), 1.0 / (branch_radius / (support_line_width / 2.0)))) , // Either 40° or as much as possible so that 2 lines will overlap by at least 50%, whichever is smaller. support_overrides(mesh_group_settings.get("support_xy_overrides_z")) , xy_min_distance(support_overrides == SupportDistPriority::Z_OVERRIDES_XY ? mesh_group_settings.get("support_xy_distance_overhang") : xy_distance) diff --git a/src/LayerPlan.cpp b/src/LayerPlan.cpp index 1ef4b35bda..ee0b331396 100644 --- a/src/LayerPlan.cpp +++ b/src/LayerPlan.cpp @@ -2006,6 +2006,15 @@ void LayerPlan::writeGCode(GCodeExport& gcode) constexpr bool wait = false; gcode.writeBedTemperatureCommand(mesh_group_settings.get("material_bed_temperature"), wait); } + if (mesh_group_settings.get("build_volume_fan_nr") != 0) + { + // The machine has a build volume fan. + if (layer_nr_ == mesh_group_settings.get("build_fan_full_layer")) + { + gcode.writeSpecificFanCommand(100, mesh_group_settings.get("build_volume_fan_nr")); + } + } + gcode.setZ(z_);