-
-
Notifications
You must be signed in to change notification settings - Fork 23.5k
Fix ResourceSaver saving default value of Resource
#107049
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 ResourceSaver saving default value of Resource
#107049
Conversation
|
@OzelotVanilla You can use annotations similar to the ones I've added to the bottom of the PR description you wrote. When a PR is intended to replace another one which is either stale or an agreedly worse approach, it's common practice to use the Supersedes word. Regarding issue(s) the PR may fix, you can add Fixes or Closes statements. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes a lot of sense to me. However, these areas always tricky. In any case, since we're still in dev release stage, I believe this is a good moment to give this a go.
@RandomShaper Got that. Thank you for the explanation 😀 ! Later I will search around to see if there is any similar issue. When that is done, I would send a new comment here. By the way I found |
That's fine like this, since closing a PR is usually a maintainer decision so we do it manually. |
|
@RandomShaper I think no further issues could be added to this project. This PR is able to be merged now. Thank you for you all for reviewing this PR. By the way do I need to edit the commit message to add you (@RandomShaper and @dalexeev) as co-author ? |
|
Thanks! |
As far as I can tell, we have no formal rules for that. However, I can confidently say that in a case like this no one would expect you to do so. You'd only add co-author annotations in cases were others' have made significant contributions to the code committed, especially if those are already in the form of code. An example of that is when you squash some commits of yours with sone from other people. |
|
@akien-mga @OzelotVanilla I encountered an issue after this was merged. Resources inheriting from a C# script are now saved wrong. |
Thank you for reporting this ! I did not realise that and I should also give C# script a test. Edit: Do you think the root cause could be here: godot/scene/property_utils.cpp Lines 92 to 100 in 50c4b36
|
|
Actually, ignore what I said about the issue being that I'm not familiar enough with Godots codebase to really say how this fix this. You could just add a special case for the |
|
@CrabNickolson Could you open an issue so we can track this regression properly as a blocker? |
|
@akien-mga done, #107243 (also it turns out that this does affect GDScript, as long as the resource is a global class) |
This PR solves the issue mentioned in this previous PR #80897.
That PR seems to be inactive for a few while, and according to the discussion #80897 (review) done by @dalexeev and @RandomShaper, this PR is proposed. The original PR just needs a few changes to fix the issue #80894.
Since I am new to this community yet, I am still learning the convention (and what considered as common sense) here. Hope this PR is not offensive.
Happy to close (abort) this PR if the original authors continue on their work.
If this PR is considered valid, I want to ask that:
closestatement to the linked issues and that original PR and related PR mentioned ?Added by @RandomShaper:
Fixes #80894.
Supersedes #80897.