From fcb371f2273903613ec4914915fdc622452b7176 Mon Sep 17 00:00:00 2001 From: arnav Date: Fri, 18 Oct 2024 17:31:18 -0700 Subject: [PATCH] changing arg execution order for sketch arc --- src/wasm-lib/kcl/src/std/sketch.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wasm-lib/kcl/src/std/sketch.rs b/src/wasm-lib/kcl/src/std/sketch.rs index 2d0b622ef..9a8d457d6 100644 --- a/src/wasm-lib/kcl/src/std/sketch.rs +++ b/src/wasm-lib/kcl/src/std/sketch.rs @@ -1499,7 +1499,7 @@ pub(crate) async fn inner_arc( (center, a_start, a_end, *radius, end) } ArcData::CenterToRadius { center, to, radius } => { - let (angle_start, angle_end) = arc_angles(from, center.into(), to.into(), *radius, args.source_range)?; + let (angle_start, angle_end) = arc_angles(from, to.into(), center.into(), *radius, args.source_range)?; (center.into(), angle_start, angle_end, *radius, to.into()) } };