Skip to content

Commit 71b4c98

Browse files
committed
Fix logarithmic spiral not drawing if Inner Radius is 0
1 parent 9f2c871 commit 71b4c98

File tree

1 file changed

+1
-0
lines changed
  • node-graph/libraries/vector-types/src/subpath

1 file changed

+1
-0
lines changed

node-graph/libraries/vector-types/src/subpath/core.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ impl<PointId: Identifier> Subpath<PointId> {
350350
let mut prev_in_handle = None;
351351
let theta_end = turns * std::f64::consts::TAU + start_angle;
352352

353+
let a = if spiral_type == SpiralType::Logarithmic { a.max(1e-10) } else { a };
353354
let b = calculate_growth_factor(a, turns, outer_radius, spiral_type);
354355

355356
let mut theta = start_angle;

0 commit comments

Comments
 (0)