missing temporary modes in a couple more places
This commit is contained in:
parent
69eeefe197
commit
d0d22fffbc
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue