diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-05-30 16:22:35 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-05-30 16:23:01 -0700 |
commit | 69eeefe1979c0bbde4f3dadba6ae6adc7279a080 (patch) | |
tree | 6442691e941e6288c2c54421566bb4a102e58b71 | |
parent | b22bfe82dbd3ef91c47ff0e43a845f55916796c2 (diff) | |
download | lines.love-69eeefe1979c0bbde4f3dadba6ae6adc7279a080.tar.gz |
missing shape modes in a couple more places
-rw-r--r-- | drawing.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drawing.lua b/drawing.lua index 822b3ab..34201e7 100644 --- a/drawing.lua +++ b/drawing.lua @@ -649,7 +649,7 @@ function Drawing.contains_point(shape, p) -- not supported elseif shape.mode == 'line' or shape.mode == 'manhattan' then return shape.p1 == p or shape.p2 == p - elseif shape.mode == 'polygon' then + elseif shape.mode == 'polygon' or shape.mode == 'rectangle' or shape.mode == 'square' then return table.find(shape.vertices, p) elseif shape.mode == 'circle' then return shape.center == p |