demonlord icon indicating copy to clipboard operation
demonlord copied to clipboard

Duplicating actor causes token settings to reset

Open arbron opened this issue 3 years ago • 2 comments

To Duplicate

  1. Create an actor
  2. Open Prototype Token and change "Display Name" to "Always for Everyone"
  3. Duplicate this actor
  4. Open Prototype Token and see "Display Name" has reset to "Hovered by Owner"

Expected Behavior

Duplicating an actor will not change customized token settings.

arbron avatar Apr 27 '21 17:04 arbron

Nothing I change in the system.

If you look at the token is it a linked actor? A unlinked token is a unique copy of the actor and if you change it you don’t change the original actor.

If you copy the actor afterwards you don’t get the changes.

Xacus avatar Apr 27 '21 17:04 Xacus

It looks like during the Hooks.on('preCreateActor') that is called when you duplicate an actor it overwrites whatever settings are set on the prototype token before the duplication.

arbron avatar Apr 28 '21 16:04 arbron