fixed fix
This commit is contained in:
@@ -117,7 +117,7 @@ class DDImporter {
|
||||
let portalPoint2 = [portalCenterPoint[0] - portal.radius*portalDirection[0], portalCenterPoint[1] - portal.radius*portalDirection[1]] ;
|
||||
alldoors.push([portalPoint1, portalPoint2])
|
||||
let allwalls_new = []
|
||||
for (let lineindex = 0; lineindex < acurrentwallsllwalls.length; lineindex+=1){
|
||||
for (let lineindex = 0; lineindex < currentwalls.length; lineindex+=1){
|
||||
let line = acurrentwallsllwalls[lineindex]
|
||||
if (this.pointIsOnLine(portalCenterPoint,line)){
|
||||
let endpoint1 = this.getNearerPoint(line[0], [portalPoint1, portalPoint2])
|
||||
@@ -133,7 +133,7 @@ class DDImporter {
|
||||
allwalls_new.push(line)
|
||||
}
|
||||
}
|
||||
acurrentwallsllwalls = allwalls_new
|
||||
currentwalls = allwalls_new
|
||||
}
|
||||
allwalls = allwalls.concat(currentwalls)
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"name": "dd-import",
|
||||
"title": "DungeonDraft Importer",
|
||||
"description": "Imports scene elements from Dungeon Draft map files",
|
||||
"version": "0.4.20",
|
||||
"version": "0.4.21",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Moo Man"
|
||||
|
||||
Reference in New Issue
Block a user