From 9c0fcdeb34810673e66b79cbf5b864e5ebce1649 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Sun, 19 Sep 2021 16:02:22 +0300 Subject: [PATCH] markers rework - editor start, dragging --- modules/load.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/load.js b/modules/load.js index 158488c9..e5b60ae7 100644 --- a/modules/load.js +++ b/modules/load.js @@ -824,6 +824,7 @@ function parseLoadedData(data) { const riverPoints = []; const length = node.getTotalLength() / 2; + if (!length) continue; const segments = Math.ceil(length / 6); const increment = length / segments;