Browse Source

Fix Connection draw on out of view Block

Invert the short circuit so we still do the connection draw after all other block drawing logic
master
shalliwell 5 years ago
parent
commit
9cce05ed69
  1. 6
      Assets/Fungus/Scripts/Editor/FlowchartWindow.cs

6
Assets/Fungus/Scripts/Editor/FlowchartWindow.cs

@ -2113,8 +2113,8 @@ namespace Fungus.EditorUtils
windowRelativeRect.position += flowchart.ScrollPos;
//skip if outside of view
if (!scriptViewRect.Overlaps(windowRelativeRect))
return;
if (scriptViewRect.Overlaps(windowRelativeRect))
{
var tmpNormBg = nodeStyle.normal.background;
@ -2193,7 +2193,7 @@ namespace Fungus.EditorUtils
GUI.Label(rect, handlerLabel, handlerStyle);
}
}
DrawConnections(block);
}

Loading…
Cancel
Save