-
-
Notifications
You must be signed in to change notification settings - Fork 21.9k
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
Mark underscored properties as internal #94954
Mark underscored properties as internal #94954
Conversation
These properties look like they were intended to be internal but they were missing the `PROPERTY_USAGE_INTERNAL` flag. - `PackedScene::_bundled` - `PortableCompressedTexture2D::_data` - `ImporterMesh::_data`
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.
These cases make sense to me, and I trust the C# side with respect to any possible compatibility, unsure how these are handled there (as this doesn't affect GDScript in any major way, beyond hiding it)
How does this affect extensions? Does the flag affect anything or is the _
already the controlling factor?
CC @dsnopek
C# also only hides them, so it doesn't break compatibility.
Yes, these properties are already excluded from |
Can confirm the API dump skips them already, and it doesn't touch the getter or setter so it won't change anything, so looks good all around |
While I do agree in principle, I would be very careful with In my opinion it should be deprecated in favour of using SceneState, instead. However, if SceneState is "less" comfortable to access than the dictionary representation, this property has some reason to be exposed. |
I'd say documenting it was a mistake and it should either have been called |
OptimizedTranslation also has those properties which don't any make sense when viewed in the inspector: Should these be marked as internal? Testing project: test_csv_translation.zip |
@Calinou If you just want to hide them in the inspector we can use However, these properties are added with |
Thanks! |
This PR causes a regression on the master branch as subresources of nodes are no longer saved, adding either the PROPERTY_USAGE_STORAGE or PROPERTY_USAGE_NO_EDITOR flag seems to fix it. |
... and another regression where FBX/GLTF don't instance |
I think it's really funny that the best way to have people test PRs is to force them to in a dev build, like throwing spaghetti at the wall to see if they stick. |
These properties look like they were intended to be internal but they were missing the
PROPERTY_USAGE_INTERNAL
flag.PackedScene::_bundled
PortableCompressedTexture2D::_data
ImporterMesh::_data