From cf4119e1692ca565b9ffef244ed2aa07ba374b83 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sat, 17 Jan 2015 23:02:48 +0100 Subject: [PATCH] Populate ExtrusionPath::height correctly in case of bridge --- lib/Slic3r/Layer/PerimeterGenerator.pm | 2 +- xs/src/libslic3r/Flow.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Slic3r/Layer/PerimeterGenerator.pm b/lib/Slic3r/Layer/PerimeterGenerator.pm index 32e7257ad..67c758d6e 100644 --- a/lib/Slic3r/Layer/PerimeterGenerator.pm +++ b/lib/Slic3r/Layer/PerimeterGenerator.pm @@ -368,7 +368,7 @@ sub _traverse_loops { role => EXTR_ROLE_OVERHANG_PERIMETER, mm3_per_mm => $self->_mm3_per_mm_overhang, width => $self->overhang_flow->width, - height => $self->layer_height, + height => $self->overhang_flow->height, ); } diff --git a/xs/src/libslic3r/Flow.cpp b/xs/src/libslic3r/Flow.cpp index b9af18184..f91caed4b 100644 --- a/xs/src/libslic3r/Flow.cpp +++ b/xs/src/libslic3r/Flow.cpp @@ -32,6 +32,7 @@ Flow::new_from_spacing(float spacing, float nozzle_diameter, float height, bool if (height <= 0 && !bridge) CONFESS("Invalid flow height supplied to new_from_spacing()"); float w = Flow::_width_from_spacing(spacing, nozzle_diameter, height, bridge); + if (bridge) height = w; return Flow(w, height, nozzle_diameter, bridge); }