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