Fix Support Fill Cost Thresholds Being Frozen By The First Call (#15564)

Fix support fill cost thresholds being frozen by the first call
This commit is contained in:
HanifKoh
2026-09-07 16:35:36 +08:00
committed by GitHub
parent 494d50bd55
commit 886d43d37a

View File

@@ -2467,9 +2467,11 @@ void Fill::connect_base_support(Polylines &&infill_ordered, const std::vector<co
#endif // INFILL_DEBUG_OUTPUT #endif // INFILL_DEBUG_OUTPUT
const std::vector<SupportArcCost> arches = evaluate_support_arches(infill_ordered, graph, spacing, params); const std::vector<SupportArcCost> arches = evaluate_support_arches(infill_ordered, graph, spacing, params);
static const double cost_low = line_spacing * 1.3; // Must not be static: line_spacing varies per call (base vs interface fills differ),
static const double cost_high = line_spacing * 2.; // and a static here would fix these to whichever call ran first, order depending on thread count.
static const double cost_veryhigh = line_spacing * 3.; const double cost_low = line_spacing * 1.3;
const double cost_high = line_spacing * 2.;
const double cost_veryhigh = line_spacing * 3.;
{ {
std::vector<const SupportArcCost*> selected; std::vector<const SupportArcCost*> selected;