Skip to content

Commit

Permalink
Unconditionally super up in TokenDocumentPF2e#prepareBaseData (#15000)
Browse files Browse the repository at this point in the history
  • Loading branch information
stwlam committed Jun 7, 2024
1 parent 21553c1 commit 8e0f462
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/module/scene/token-document/document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ class TokenDocumentPF2e<TParent extends ScenePF2e | null = ScenePF2e | null> ext

/** If rules-based vision is enabled, disable manually configured vision radii */
override prepareBaseData(): void {
super.prepareBaseData();

this.flags = fu.mergeObject(this.flags, { pf2e: {} });
const actor = this.actor;
if (!actor) return;
Expand All @@ -210,8 +212,6 @@ class TokenDocumentPF2e<TParent extends ScenePF2e | null = ScenePF2e | null> ext
// Token dimensions from actor size
TokenDocumentPF2e.prepareSize(this);

super.prepareBaseData();

// Merge token overrides from REs into this document
const tokenOverrides = actor.synthetics.tokenOverrides;
this.name = tokenOverrides.name ?? this.name;
Expand Down

0 comments on commit 8e0f462

Please sign in to comment.