Merge pull request #109446 from aaronfranke/gltf-handle-image-enum

GLTF: Make handle binary image mode enum type-safe
This commit is contained in:
Thaddeus Crews
2025-11-11 16:07:52 -06:00
8 changed files with 78 additions and 31 deletions

View File

@ -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;
}