Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicating actor causes token settings to reset #67

Open
arbron opened this issue Apr 27, 2021 · 2 comments
Open

Duplicating actor causes token settings to reset #67

arbron opened this issue Apr 27, 2021 · 2 comments

Comments

@arbron
Copy link

arbron commented Apr 27, 2021

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.

@Xacus
Copy link
Owner

Xacus commented Apr 27, 2021

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.

@arbron
Copy link
Author

arbron commented Apr 28, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants