mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 15:44:12 -06:00
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:
parent
39b8ac80ee
commit
28695c719c
2 changed files with 42 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue