Python API: Add deprecation warning to MeshUVLoop #105970

Merged
Martijn Versteegh merged 4 commits from Baardaap/blender:deprecation_warning into main 2023-03-21 21:05:37 +01:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit fec5bc8a5b - Show all commits

View File

@ -2988,7 +2988,7 @@ static void rna_def_mloopuv(BlenderRNA *brna)
RNA_def_property_ui_text(

I think struct isn't exactly the right word in Python, I'd recommend just skipping This struct is at the front.

Quotes around property names are typical too.

I think `struct` isn't exactly the right word in Python, I'd recommend just skipping `This struct is` at the front. Quotes around property names are typical too.
prop,
"MeshUVLoop (Deprecated)",
"This struct is deprecated, use uv, vertex_select, edge_select or pin properties instead");
"Deprecated, use 'uv', 'vertex_select', 'edge_select' or 'pin' properties instead");
RNA_def_property_collection_funcs(prop,
"rna_MeshUVLoopLayer_data_begin",
"rna_iterator_array_next",