diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-05-30 15:28:50 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-05-30 15:28:50 -0700 |
commit | 096f6255b2733c49b2d4cb4edf15e08d0b58f18a (patch) | |
tree | 44b5f42e656b6be5c6e470668d18e46f6c84300a | |
parent | 1552efd76d3b815883d5eeafd5cf681d91de0bce (diff) | |
download | lines.love-096f6255b2733c49b2d4cb4edf15e08d0b58f18a.tar.gz |
ignore 'name' mode in a few places
-rw-r--r-- | drawing.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drawing.lua b/drawing.lua index 677cab3..245d27b 100644 --- a/drawing.lua +++ b/drawing.lua @@ -219,6 +219,8 @@ function Drawing.mouse_pressed(drawing, x,y, button) drawing.pending = {mode=Current_drawing_mode, center=j} 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 else print(Current_drawing_mode) assert(false) @@ -332,6 +334,8 @@ 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 == 'name' then + -- all the action is in mouse_released else print(Lines.current.pending.mode) assert(false) |