Skip to content

Commit

Permalink
Merge pull request #5027 from kwvanderlinde/fixup/pr-5019-uvtt-import…
Browse files Browse the repository at this point in the history
…-erases

Fix erase flag when DungeonDraftImporter adds topology to the zone
  • Loading branch information
cwisniew authored Nov 5, 2024
2 parents cf668a3 + b5362eb commit 4a56318
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ public void importVTT() throws IOException {
WALL_VBL_STROKE.createStrokedShape(
getVBLPath(v.getAsJsonArray(), pixelsPerCell)));
if (finalDo_transform) vblArea.transform(at);
zone.updateTopology(vblArea, true, Zone.TopologyType.WALL_VBL);
zone.updateTopology(vblArea, true, Zone.TopologyType.MBL);
zone.updateTopology(vblArea, false, Zone.TopologyType.WALL_VBL);
zone.updateTopology(vblArea, false, Zone.TopologyType.MBL);
});
}

Expand All @@ -215,8 +215,8 @@ public void importVTT() throws IOException {
v -> {
Area vblArea = new Area(getVBLPath(v.getAsJsonArray(), pixelsPerCell));
if (finalDo_transform) vblArea.transform(at);
zone.updateTopology(vblArea, true, Zone.TopologyType.HILL_VBL);
zone.updateTopology(vblArea, true, Zone.TopologyType.PIT_VBL);
zone.updateTopology(vblArea, false, Zone.TopologyType.HILL_VBL);
zone.updateTopology(vblArea, false, Zone.TopologyType.PIT_VBL);
});
}

Expand All @@ -239,8 +239,8 @@ public void importVTT() throws IOException {
Area vblArea =
new Area(DOOR_VBL_STROKE.createStrokedShape(getVBLPath(bounds, pixelsPerCell)));
if (finalDo_transform) vblArea.transform(at);
zone.updateTopology(vblArea, true, Zone.TopologyType.WALL_VBL);
zone.updateTopology(vblArea, true, Zone.TopologyType.MBL);
zone.updateTopology(vblArea, false, Zone.TopologyType.WALL_VBL);
zone.updateTopology(vblArea, false, Zone.TopologyType.MBL);
}
});
}
Expand Down

0 comments on commit 4a56318

Please sign in to comment.