Skip to content

Commit 12dcf9d

Browse files
committed
Version bump
- automatically remove template texture upon all filter deletion
1 parent f9e8f69 commit 12dcf9d

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

tokenmagic/module.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
{
22
"id": "tokenmagic",
33
"title": "Token Magic FX",
4-
"description": "<p>Add special effects and animations on your tokens, tiles, drawings and templates.</p>",
5-
"version": "0.7.2",
4+
"description": "Add special effects and animations on your tokens, tiles, drawings, templates, and regions",
5+
"version": "0.7.3",
6+
"manifest": "https://github.com/Feu-Secret/Tokenmagic/releases/latest/download/module.json",
7+
"download": "https://github.com/Feu-Secret/Tokenmagic/releases/download/0.7.3/tokenmagic.zip",
68
"compatibility": {
79
"minimum": "13",
8-
"verified": "13.342"
10+
"verified": "13.350"
911
},
1012
"authors": [
1113
{
@@ -47,6 +49,10 @@
4749
{
4850
"name": "OsiJr",
4951
"flags": {}
52+
},
53+
{
54+
"name": "Aedif",
55+
"flags": {}
5056
}
5157
],
5258
"scripts": [
@@ -135,7 +141,5 @@
135141
]
136142
},
137143
"socket": true,
138-
"url": "https://github.com/Feu-Secret/Tokenmagic",
139-
"manifest": "https://github.com/Feu-Secret/Tokenmagic/releases/latest/download/module.json",
140-
"download": "https://github.com/Feu-Secret/Tokenmagic/releases/download/0.7.2/tokenmagic.zip"
144+
"url": "https://github.com/Feu-Secret/Tokenmagic"
141145
}

tokenmagic/module/tokenmagic.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2011,6 +2011,10 @@ Hooks.on('preUpdateMeasuredTemplate', async (document, options) => {
20112011
}
20122012
} else await measuredTemplateInstance.TMFXdeleteFilters();
20132013
}
2014+
2015+
if (options.flags?.tokenmagic?.hasOwnProperty('-=filters')) {
2016+
options['-=texture'] = null;
2017+
}
20142018
});
20152019

20162020
/* -------------------------------------------- */

0 commit comments

Comments
 (0)