about summary refs log tree commit diff stats
path: root/drawing.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-06-15 09:57:49 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-06-15 09:57:49 -0700
commitd77bcd8f8ceb012d56a6ca977ab1411082694e72 (patch)
tree413c291cddc53b70d1f49c9de35481d3da2139d6 /drawing.lua
parent4280b19cacde59beae8edebb08146b16925e758a (diff)
downloadtext.love-d77bcd8f8ceb012d56a6ca977ab1411082694e72.tar.gz
stop recording points for arcs
It was kinda weird that we were recording the start but not the end.
And moving the start point didn't actually affect the arc.
Let's see if we actually ever need it.
Diffstat (limited to 'drawing.lua')
-rw-r--r--drawing.lua1
1 files changed, 0 insertions, 1 deletions
diff --git a/drawing.lua b/drawing.lua
index 646125d..d90ce21 100644
--- a/drawing.lua
+++ b/drawing.lua
@@ -429,7 +429,6 @@ function Drawing.keychord_pressed(chord)
     local _,drawing = Drawing.current_drawing()
     drawing.pending.mode = 'arc'
     local mx,my = Drawing.coord(App.mouse_x()-Margin_left), Drawing.coord(App.mouse_y()-drawing.y)
-    local j = Drawing.insert_point(drawing.points, mx,my)
     local center = drawing.points[drawing.pending.center]
     drawing.pending.radius = geom.dist(center.x,center.y, mx,my)
     drawing.pending.start_angle = geom.angle(center.x,center.y, mx,my)