[Bf-blender-cvs] [69c587888b5] master: Fix T74003: Autocomplete bug with mesh.loop_triangles. in Blender Python Console.

Bastien Montagne noreply at git.blender.org
Mon Feb 24 12:46:47 CET 2020


Commit: 69c587888b5e95a2f838f63cabd52bc6cf752ece
Author: Bastien Montagne
Date:   Mon Feb 24 12:43:24 2020 +0100
Branches: master
https://developer.blender.org/rB69c587888b5e95a2f838f63cabd52bc6cf752ece

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.

===================================================================

M	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(



More information about the Bf-blender-cvs mailing list