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

Fix regression when duplicating a node with a resource attached #89957

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

warriormaster12
Copy link
Contributor

@warriormaster12 warriormaster12 commented Mar 27, 2024

So basically there was an if-statement that caused resources to not duplicate since they inherit object. The original thought was that nodes were the only things that inherited object and because of it we could leave the duplication to _duplicate_properties_node function. However, since that wasn't the case the simplest change that I decided to just remove the if-statement entirely.

Fixes: #89824, Fixes #89947

@warriormaster12 warriormaster12 requested a review from a team as a code owner March 27, 2024 21:03
@KoBeWi KoBeWi added this to the 4.3 milestone Mar 27, 2024
Copy link
Member

@KoBeWi KoBeWi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine. I thought that it may cause some properties to be set twice, but it's not the case.

@warriormaster12
Copy link
Contributor Author

Well it is setting some twice but it's overrifing the first

@akien-mga akien-mga merged commit af08342 into godotengine:master Mar 28, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

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