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 4 additions and 0 deletions

View File

@ -2985,6 +2985,10 @@ static void rna_def_mloopuv(BlenderRNA *brna)
prop = RNA_def_property(srna, "data", PROP_COLLECTION, PROP_NONE);
RNA_def_property_struct_type(prop, "MeshUVLoop");
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)",
"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",