From 69c587888b5e95a2f838f63cabd52bc6cf752ece Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Mon, 24 Feb 2020 12:43:24 +0100 Subject: 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. --- source/blender/makesrna/intern/rna_mesh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/makesrna/intern/rna_mesh.c') 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( -- cgit v1.2.3