Fixed regression causing bridge flow to be incorrect when a manual default extrusion width was specified. Includes several regression tests. #2027

This commit is contained in:
Alessandro Ranellucci 2014-06-03 23:59:03 +02:00
parent 39b8ac80ee
commit 28695c719c
2 changed files with 42 additions and 3 deletions

View file

@ -9,7 +9,8 @@ Flow::new_from_config_width(FlowRole role, const ConfigOptionFloatOrPercent &wid
if (height <= 0 && bridge_flow_ratio == 0) CONFESS("Invalid flow height supplied to new_from_config_width()");
float w;
if (!width.percent && width.value == 0) {
// use automatic extrusion width if user left 0 or we need a bridge flow
if ((!width.percent && width.value == 0) || bridge_flow_ratio > 0) {
w = Flow::_width(role, nozzle_diameter, height, bridge_flow_ratio);
} else {
w = width.get_abs_value(height);