-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
Move registration of fallbacks
property in the base Font class
#78266
Conversation
Put the property define where the get setter are defined |
Thanks for your first contribution. Could you clarify what motivates the change? It doesn't seem wrong per se but it's unclear what it's fixing, if anything. You would also need to update the class reference to match the change of inheritance. See https://docs.godotengine.org/en/latest/contributing/documentation/updating_the_class_reference.html |
You're also making each case storage, I don't think |
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.
It was defined in the subclasses for the reason, fallback
has, PROPERTY_USAGE_STORAGE flag for FontFile
and default flags for the rest of fonts.
This change will hide fallback
from the editor inspector UI for all types of fonts, which is wrong (it should be only hidden for FontFile
since it's an imported resource and should not be modified manually).
We usually handle such cases with |
The reason I noticed I am working on a code generator for a networking system that adds code into every set method and my code could not find the set method which seemed odd to me because this problem did show up else where in the code base and this is the only case I can find properties definitions exciting separate from where the methods are defined. Also I added _validate_property to font file so it well tell it to be storage I am doing this because it seems be a consistency issue |
The documentation needs to be updated for variation as well, it doesn't have that property any longer locally |
@AThousandShips I do not see what you are talking about or has this been already dealt with with my last force push |
The file You also have to update your branch to the latest upstream version or CI will fail |
I just realized I forgot to save the file @AThousandShips that is why it was still there |
@AThousandShips so I should rebase it? |
My bad you were more out of date than I thought so it should be safe |
You should also squash the commits into 1 and remove me from co-authors. |
Still need to fix the documentation, methods for properties aren't exposed in the documentation |
By the way, this would technically be a breaking change for C#, at least. |
fallbacks
property in the base Font class
Thanks! |
Broke API compat, was merged before the CI could report this, needs followup, let's make sure these specific CI pass before merging |
My bad, CI was taking forever and I overlooked that it hadn't passed yet here. Edit: Fixup: #80374. |
Add compatibility notice after #78266
No description provided.