mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 22:28:10 +08:00
Fix logarithmic spiral not drawing if Inner Radius is 0
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user