leave open
This commit is contained in:
@@ -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]]])
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user