This commit is contained in:
@@ -381,11 +381,13 @@ export default class HeritiersActorSheet extends HandlebarsApplicationMixin(foun
|
||||
* @private
|
||||
*/
|
||||
static async #onEditImage(event, target) {
|
||||
const attr = target.dataset.edit || "img"
|
||||
const current = foundry.utils.getProperty(this.actor, attr) ?? this.actor.img
|
||||
const fp = new FilePicker({
|
||||
type: "image",
|
||||
current: this.actor.img,
|
||||
current,
|
||||
callback: (path) => {
|
||||
this.actor.update({ img: path })
|
||||
this.actor.update({ [attr]: path })
|
||||
},
|
||||
})
|
||||
return fp.browse()
|
||||
|
||||
Reference in New Issue
Block a user