GLTF: Make handle binary image mode enum type-safe

This commit is contained in:
Aaron Franke
2025-08-07 23:50:29 -07:00
parent 9d84f3d135
commit a5424c321e
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;
}