typo bugfix
This commit is contained in:
parent
dae769525f
commit
3e819d481e
|
@ -23,12 +23,6 @@ on.draw = function()
|
|||
end
|
||||
end
|
||||
if Edge then
|
||||
App.color{r=0,g=0,b=1}
|
||||
if Edge.s.debug_info then
|
||||
for _,p in ipairs(Edge.s.debug_info) do
|
||||
love.graphics.circle('line', vx(p.sx), vy(p.sy), 5)
|
||||
end
|
||||
end
|
||||
App.color{r=0,g=0,b=0}
|
||||
love.graphics.line(vx(Edge.s.sx),vy(Edge.s.sy), vx(Edge.e.sx),vy(Edge.e.sy))
|
||||
love.graphics.circle('fill', vx(Edge.s.sx),vy(Edge.s.sy), 5)
|
||||
|
|
7
0040-A1
7
0040-A1
|
@ -5,13 +5,6 @@ A1 = function(id, preserve_screen_top_of_cursor_node)
|
|||
-- delete previously added shapes for this node:
|
||||
for i=#Surface,1,-1 do
|
||||
local x = Surface[i]
|
||||
if x.id then print(x.id, x.type)
|
||||
elseif x.keys then
|
||||
print('keys', x.type)
|
||||
for _,k in ipairs(x.keys) do
|
||||
print('', k)
|
||||
end
|
||||
end
|
||||
if x.id == id or (x.keys and table.find(x.keys, id)) then
|
||||
table.remove(Surface, i)
|
||||
end
|
||||
|
|
|
@ -4,11 +4,11 @@ intersect_with_centroid = function(node, sx,sy)
|
|||
-- collect nearest intersection with all 4 boundaries
|
||||
local candidates = {}
|
||||
local y = y_at_x(sx,sy, c.sx,c.sy, node.x-10)
|
||||
if y and y >= node.y-10 and y < node.x+h+10 then
|
||||
if y and y >= node.y-10 and y < node.y+h+10 then
|
||||
table.insert(candidates, {sx=node.x-10, sy=y})
|
||||
end
|
||||
y = y_at_x(sx,sy, c.sx,c.sy, node.x+node.w+10)
|
||||
if y and y >= node.y-10 and y < node.x+h+10 then
|
||||
if y and y >= node.y-10 and y < node.y+h+10 then
|
||||
table.insert(candidates, {sx=node.x+node.w+10, sy=y})
|
||||
end
|
||||
local x = x_at_y(sx,sy, c.sx,c.sy, node.y-10)
|
||||
|
|
Loading…
Reference in New Issue