Skip to content

Conversation

dsnopek
Copy link
Collaborator

@dsnopek dsnopek commented Sep 17, 2024

In PR #1446, we forgot to make sure that instance bindings were being set when recreating an instance with a pre-existing owner (which is what happens on hot reload), leading to incomplete reload.

This fixes that, while also making the code more consistent with the approach used in #1446.

Fixes #1589

@fire
Copy link
Member

fire commented Oct 5, 2024

Is this indefinitely blocked because there's no other reviewers?

@dsnopek
Copy link
Collaborator Author

dsnopek commented Oct 5, 2024

I wouldn't call it "indefinitely blocked" - it's "awaiting review" :-)

Copy link
Contributor

@paddy-exe paddy-exe left a comment

Choose a reason for hiding this comment

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

Haven't tested it but from a taking a look at the code it does look more consistent now.

@Ivorforce
Copy link
Member

Ivorforce commented Oct 16, 2024

I just tested the PR on top of my personal project (by checking out your branch and recompiling). I was hoping it might solve godotengine/godot#96403, which I now thought might be a duplicate of #1589.

Unfortunately, it didn't. I still get class load errors whenever the project is recompiled. Regarding the repro project linked in #1589, I was not able to build the project on top of it since it had a structure I was not familiar with.

@dsnopek dsnopek merged commit a98d41f into godotengine:master Oct 17, 2024
12 checks passed
@dsnopek
Copy link
Collaborator Author

dsnopek commented Oct 28, 2024

Cherry-picked for 4.3 in PR #1632

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

Labels

bug This has been identified as a bug regression

Projects

None yet

Development

Successfully merging this pull request may close these issues.

C++ Hot Reload Regressions in 4.2.2 and 4.3

4 participants