leave open

This commit is contained in:
2020-03-22 22:56:45 +01:00
parent 3a15058c7d
commit be27a82a5a
2 changed files with 4 additions and 2 deletions

View File

@@ -102,7 +102,9 @@ class DDImporter {
let ddWalls = file.world.levels[level].walls[index]
let ddPointString = ddWalls.points;
let points = ddPointString.substring(18, ddPointString.length-2).split(", ").map(a => Number(a))
points = points.concat(points.slice(0,2))
if (dd.loop){
points = points.concat(points.slice(0,2))
}
for(let i = 0; i < points.length-3; i+=2)
{
allwalls.push([[points[i], points[i+1]], [points[i+2], points[i+3]]])

View File

@@ -2,7 +2,7 @@
"name": "dd-import",
"title": "DungeonDraft Importer",
"description": "Imports scene elements from Dungeon Draft map files",
"version": "0.4.17",
"version": "0.4.18",
"authors": [
{
"name": "Moo Man"