Populate ExtrusionPath::height correctly in case of bridge

This commit is contained in:
Alessandro Ranellucci 2015-01-17 23:02:48 +01:00
parent d781371d66
commit cf4119e169
2 changed files with 2 additions and 1 deletions

View file

@ -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);
}