Fix API hash related crash in EditorSettings
#80089
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Crash due to manipulating API after getting the hash, which happens with
--verbose
Instead of registering
EditorSettings
as abstract, and then registering as complete when creating an instance, we now register it as complete from the start.This behavior is equivalent to how it worked prior to #78615, where the built-in documentation doesn't show the default values of
EditorSettings
, the abstract state ofEditorSettings
is and has always been false, and it is and has been possible to instance it from scripts (required for the loading of the settings)I don't think the loss of the built-in documentation for these settings is a major loss,
EditorSettings
itself remains in the documentation, and the results of--doctool
remains the sameIn summary, I think this is a good balanced solution to the issue, without having to mess with the specific registration location of
EditorSettings
. Unless there is some reason for it being abstract that I have missed (other than the documentation generation)ClassDB::set_current_api
in latest master when launched w/ --verbose #80062