mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #109446 from aaronfranke/gltf-handle-image-enum
GLTF: Make handle binary image mode enum type-safe
This commit is contained in:
commit
3c871084f9
8 changed files with 78 additions and 31 deletions
|
|
@ -2789,6 +2789,8 @@ Error BindingsGenerator::_generate_cs_property(const BindingsGenerator::TypeInte
|
|||
|
||||
if (p_iprop.is_hidden) {
|
||||
p_output.append(MEMBER_BEGIN "[EditorBrowsable(EditorBrowsableState.Never)]");
|
||||
// Deprecated PROPERTY_USAGE_INTERNAL properties appear as hidden to C# and may call deprecated getter/setter functions.
|
||||
p_output.append("\n#pragma warning disable CS0618 // Type or member is obsolete.");
|
||||
}
|
||||
|
||||
p_output.append(MEMBER_BEGIN "public ");
|
||||
|
|
@ -2847,6 +2849,10 @@ Error BindingsGenerator::_generate_cs_property(const BindingsGenerator::TypeInte
|
|||
|
||||
p_output.append(CLOSE_BLOCK_L1);
|
||||
|
||||
if (p_iprop.is_hidden) {
|
||||
p_output.append("#pragma warning restore CS0618 // Type or member is obsolete.\n");
|
||||
}
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue