Fix logarithmic spiral not drawing if Inner Radius is 0

This commit is contained in:
Keavon Chambers 2026-02-22 13:48:19 -08:00
parent 9f2c8713ff
commit 71b4c98de7
1 changed files with 1 additions and 0 deletions

View File

@ -350,6 +350,7 @@ impl<PointId: Identifier> Subpath<PointId> {
let mut prev_in_handle = None;
let theta_end = turns * std::f64::consts::TAU + start_angle;
let a = if spiral_type == SpiralType::Logarithmic { a.max(1e-10) } else { a };
let b = calculate_growth_factor(a, turns, outer_radius, spiral_type);
let mut theta = start_angle;