diff options
author | Bastien Montagne <b.mont29@gmail.com> | 2020-02-24 14:43:24 +0300 |
---|---|---|
committer | Bastien Montagne <b.mont29@gmail.com> | 2020-02-24 14:46:40 +0300 |
commit | 69c587888b5e95a2f838f63cabd52bc6cf752ece (patch) | |
tree | 58e773ded7579fe8b5abb1693d9572c4ef30109a /source/blender/makesrna | |
parent | 001f7c92d1452e01622f066d37bd42545b650a27 (diff) |
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.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_mesh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_mesh.c b/source/blender/makesrna/intern/rna_mesh.c index 5e21fc883a9..689b36ffea0 100644 --- a/source/blender/makesrna/intern/rna_mesh.c +++ b/source/blender/makesrna/intern/rna_mesh.c @@ -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( |