fixed wall
This commit is contained in:
@@ -128,22 +128,22 @@ class DDImporter {
|
|||||||
console.log(this.getNearerPoint(point2, [portalPoint1, portalPoint2]));
|
console.log(this.getNearerPoint(point2, [portalPoint1, portalPoint2]));
|
||||||
topoint1 = this.getNearerPoint(point1, [portalPoint1, portalPoint2]);
|
topoint1 = this.getNearerPoint(point1, [portalPoint1, portalPoint2]);
|
||||||
topoint2 = this.getNearerPoint(point2, [portalPoint1, portalPoint2]);
|
topoint2 = this.getNearerPoint(point2, [portalPoint1, portalPoint2]);
|
||||||
let wall = new Wall({
|
let wall1 = new Wall({
|
||||||
c : [
|
c : [
|
||||||
point1[0],
|
point1[0],
|
||||||
point1[1],
|
point1[1],
|
||||||
topoint1[0],
|
topoint1[0],
|
||||||
topoint1[1]]
|
topoint1[1]]
|
||||||
});
|
});
|
||||||
wallSet.push(wall.data)
|
wallSet.push(wall1.data)
|
||||||
let wall = new Wall({
|
let wall2 = new Wall({
|
||||||
c : [
|
c : [
|
||||||
point2[0],
|
point2[0],
|
||||||
point2[1],
|
point2[1],
|
||||||
topoint2[0],
|
topoint2[0],
|
||||||
topoint2[1]]
|
topoint2[1]]
|
||||||
});
|
});
|
||||||
wallSet.push(wall.data)
|
wallSet.push(wall2.data)
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
let wall = new Wall({
|
let wall = new Wall({
|
||||||
|
|||||||
@@ -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.2",
|
"version": "0.4.3",
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "Moo Man"
|
"name": "Moo Man"
|
||||||
|
|||||||
Reference in New Issue
Block a user