Commit: 8f5775810b820c7de100d9d154d94dc2f58ee598
Author: Campbell Barton
Date: Wed Feb 19 13:19:56 2014 +1100
https://developer.blender.org/rB8f5775810b820c7de100d9d154d94dc2f58ee598
Fix T38714: MeshPolygon.center not a Vector type
===================================================================
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 5d4f3e6..bdd94b7 100644
--- a/source/blender/makesrna/intern/rna_mesh.c
+++ b/source/blender/makesrna/intern/rna_mesh.c
@@ -2002,7 +2002,7 @@ static void rna_def_mpolygon(BlenderRNA *brna)
RNA_def_property_float_funcs(prop, "rna_MeshPolygon_normal_get", NULL,
NULL);
RNA_def_property_ui_text(prop, "Polygon Normal", "Local space unit
length normal vector for this polygon");
- prop = RNA_def_property(srna, "center", PROP_FLOAT, PROP_NONE);
+ prop = RNA_def_property(srna, "center", PROP_FLOAT, PROP_XYZ);
RNA_def_property_array(prop, 3);
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
RNA_def_property_float_funcs(prop, "rna_MeshPolygon_center_get", NULL,
NULL);
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs