diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-05-30 16:23:08 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-05-30 16:23:08 -0700 |
commit | d0d22fffbc03199b7059b85d71b35741297902c7 (patch) | |
tree | d291ac60c67a16b44efe8f94de921765a44d015f | |
parent | 69eeefe1979c0bbde4f3dadba6ae6adc7279a080 (diff) | |
download | lines.love-d0d22fffbc03199b7059b85d71b35741297902c7.tar.gz |
missing temporary modes in a couple more places
-rw-r--r-- | drawing.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drawing.lua b/drawing.lua index 34201e7..6b5b6c2 100644 --- a/drawing.lua +++ b/drawing.lua @@ -220,7 +220,7 @@ function Drawing.mouse_pressed(drawing, x,y, button) elseif Current_drawing_mode == 'move' then -- all the action is in mouse_released elseif Current_drawing_mode == 'name' then - -- all the action is in mouse_released + -- nothing else print(Current_drawing_mode) assert(false) @@ -334,8 +334,10 @@ function Drawing.mouse_released(x,y, button) Lines.current.pending.end_angle = geom.angle_with_hint(center.x,center.y, mx,my, Lines.current.pending.end_angle) table.insert(Lines.current.shapes, Lines.current.pending) end + elseif Lines.current.pending.mode == 'move' then + -- drop it elseif Lines.current.pending.mode == 'name' then - -- all the action is in mouse_released + -- drop it else print(Lines.current.pending.mode) assert(false) |