Fix T74003: Autocomplete bug with mesh.loop_triangles. in Blender Python Console.

The collection property `loop_triangles` was given the RNA type
`MeshLoopTriangle` (the type of the collection's items), instead
of `MeshLoopTriangles` (the actual expected RNA collection/array type).

The cutest, tiniest typo mistake in RNA code, leading to some complete
non-sense... It's fairly amazing that this did not cause more severe
issues actually.
This commit is contained in:
Bastien Montagne 2020-02-24 12:43:24 +01:00
parent 001f7c92d1
commit 69c587888b
Notes: blender-bot 2023-02-14 05:53:42 +01:00
Referenced by issue #74274, Blender 2.82a proposed revisions
Referenced by issue #74003, Autocomplete bug with mesh.loop_triangles. in Blender Python Consolle
1 changed files with 1 additions and 1 deletions

View File

@ -2274,7 +2274,7 @@ static void rna_def_mesh_looptris(BlenderRNA *brna, PropertyRNA *cprop)
{
StructRNA *srna;
RNA_def_property_srna(cprop, "MeshLoopTriangle");
RNA_def_property_srna(cprop, "MeshLoopTriangles");
srna = RNA_def_struct(brna, "MeshLoopTriangles", NULL);
RNA_def_struct_sdna(srna, "Mesh");
RNA_def_struct_ui_text(