Skip to content

Commit

Permalink
fix: fix problem with filters not being displayed if the filteredLaye…
Browse files Browse the repository at this point in the history
…rs have not been set yet

Closes #97
  • Loading branch information
ghost91- committed Dec 13, 2021
1 parent 795f19a commit 983d9d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module/filterEffects/FilterManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class FilterManager {
*/
async update({ skipFading = false } = {}) {
this.filterInfos = canvas.scene.getFlag("fxmaster", "filters") ?? {};
this.filteredLayers = canvas.scene.getFlag("fxmaster", "filteredLayers") ?? {};
this.filteredLayers = canvas.scene.getFlag("fxmaster", "filteredLayers") ?? this.filteredLayers;

const filtersToCreate = Object.keys(this.filterInfos).filter((key) => !(key in this.filters));
const filtersToUpdate = Object.keys(this.filterInfos).filter((key) => key in this.filters);
Expand Down

0 comments on commit 983d9d8

Please sign in to comment.