From 8252a354cb7137a7048a2dfb29fb2110464914c0 Mon Sep 17 00:00:00 2001 From: Alexander Minges Date: Sat, 12 Jul 2025 21:55:17 +0200 Subject: [PATCH] feat: implement V2-compatible portrait image editing - Add editImage action to actor sheet actions - Use foundry.applications.apps.FilePicker for V2 compatibility - Enable portrait editing via click action in actor headers Restores portrait editing functionality using proper V2 patterns. --- src/apps/actor/base-sheet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/actor/base-sheet.js b/src/apps/actor/base-sheet.js index fc6efe27..c2cfe862 100644 --- a/src/apps/actor/base-sheet.js +++ b/src/apps/actor/base-sheet.js @@ -616,7 +616,7 @@ export class DS4ActorSheet extends foundry.applications.api.DocumentSheetV2 { const attr = "img"; const current = this.document.img; - const fp = new FilePicker({ + const fp = new foundry.applications.apps.FilePicker({ type: "image", current: current, callback: (path) => {