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

Copying and pasting styles in a Theme creates new ones instead of reusing them #80797

Open
YeldhamDev opened this issue Aug 19, 2023 · 1 comment

Comments

@YeldhamDev
Copy link
Member

Godot version

4.0.dev [5444afa]

System information

N/A

Issue description

When copying and pasting a StyleBox* resource from one item to another inside a Theme resource, instead of making both items use the same one, it just creates a new replica of it.

Steps to reproduce

  • Create a new Theme resource and save it to a file.
  • Give any item a StyleBox* resource, then copy and paste it to another one.
  • Save, and then open the Theme's file, and see that two different resources are in use.

Minimal reproduction project

N/A, trivially reproducible.

@m21-cerutti
Copy link

I confirm it also happen when duplicate StyleBox with code .duplicate()

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

No branches or pull requests

2 participants