diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-05-30 15:30:34 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-05-30 15:34:01 -0700 |
commit | 714f7d11cd381ef371e4cdde002e548f4189ee7f (patch) | |
tree | 443a4c242386bd57be5cf080dfc66952e49719d1 | |
parent | 3414f0a11ddaa7a04be9a7128ba6a7f352b7e24e (diff) | |
download | view.love-714f7d11cd381ef371e4cdde002e548f4189ee7f.tar.gz |
experiment: give up on changing shape mode
I often find myself accidentally hovering over some shape or other when switching modes. One additional reason to do this: I never included it in the help. So it hasn't been very high-priority.
-rw-r--r-- | drawing.lua | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drawing.lua b/drawing.lua index 3e2db42..417b5a0 100644 --- a/drawing.lua +++ b/drawing.lua @@ -454,12 +454,8 @@ function Drawing.keychord_pressed(chord) drawing.pending.p1 = drawing.pending.vertices[1] end drawing.pending.mode = 'line' - elseif chord == 'C-l' then + elseif chord == 'C-l' and not love.mouse.isDown('1') then Current_drawing_mode = 'line' - local drawing,_,shape = Drawing.select_shape_at_mouse() - if drawing then - Drawing.convert_line(drawing, shape) - end elseif love.mouse.isDown('1') and chord == 'm' then Current_drawing_mode = 'manhattan' local drawing = Drawing.select_drawing_at_mouse() @@ -475,10 +471,6 @@ function Drawing.keychord_pressed(chord) drawing.pending.mode = 'manhattan' elseif chord == 'C-m' and not love.mouse.isDown('1') then Current_drawing_mode = 'manhattan' - local drawing,_,shape = Drawing.select_shape_at_mouse() - if drawing then - Drawing.convert_horvert(drawing, shape) - end elseif chord == 'C-s' and not love.mouse.isDown('1') then local drawing,_,shape = Drawing.select_shape_at_mouse() if drawing then |