Skip to content

Commit

Permalink
10.8 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ironmonk88 committed Apr 17, 2023
1 parent 4e629c0 commit 66610c0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
# Version 10.8

Fixed issue with trying to access pixishape when it doesn't exist

Fixed issue when creating new terrain that it would only appear on a refresh.

# Version 10.7

Fixed issue with holding shift to snap to grid

Fixed issue with negative dpeth.
Fixed issue with negative depth.

Fixed issue getting access to the terrain from the canvas scene

Expand Down
2 changes: 1 addition & 1 deletion classes/terrain.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ export class Terrain extends PlaceableObject {
//this.shape.position.set(shape.width / 2, shape.height / 2);

const bounds = new PIXI.Rectangle(0, 0, shape.width, shape.height).normalize();
this.hitArea = this.controlled ? bounds.clone().pad(50) : this.shape._pixishape; // Pad to include resize handle
this.hitArea = this.controlled ? bounds.clone().pad(50) : this.shape?._pixishape; // Pad to include resize handle
this.buttonMode = true;
if (this.id && this.controlled) this.#refreshFrame(bounds);
else this.frame.visible = false;
Expand Down
1 change: 1 addition & 0 deletions classes/terrainlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ export class TerrainLayer extends PlaceablesLayer {

const documents = this.getDocuments();
const promises = documents.map(doc => {
doc._destroyed = false;
return doc.object?.draw();
});

Expand Down
4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "Enhanced Terrain Layer",
"description": "A base module that adds a Terrain Layer to Foundry. Used as a library for Rulers and other modules",
"version": "10.7",
"version": "10.8",
"authors": [
{
"name": "IronMonk",
Expand Down Expand Up @@ -50,7 +50,7 @@
"css/terrainlayer.css"
],
"url": "https://github.com/ironmonk88/enhanced-terrain-layer",
"download": "https://github.com/ironmonk88/enhanced-terrain-layer/archive/10.7.zip",
"download": "https://github.com/ironmonk88/enhanced-terrain-layer/archive/10.8.zip",
"manifest": "https://github.com/ironmonk88/enhanced-terrain-layer/releases/latest/download/module.json",
"bugs": "https://github.com/ironmonk88/enhanced-terrain-layer/issues",
"allowBugReporter": true,
Expand Down

0 comments on commit 66610c0

Please sign in to comment.