[bug]: Fixed sub-paths for lines not being reset #7

Merged
arne merged 1 commits from corner/asdf-games:master into master 2020-08-11 17:50:05 +02:00
Showing only changes of commit b9a357130b - Show all commits

View File

@ -92,6 +92,7 @@ class CanvasRenderer {
ctx.fill(); ctx.fill();
} else if (child.style && child.target) { } else if (child.style && child.target) {
ctx.beginPath();
ctx.moveTo(0,0); ctx.moveTo(0,0);
ctx.lineTo(child.target.x, child.target.y); ctx.lineTo(child.target.x, child.target.y);
ctx.strokeStyle = child.style; ctx.strokeStyle = child.style;