[Bf-blender-cvs] [e7981a3] master: Fix T49595: bpy - negative skin_vertices radius crashes Blender

Bastien Montagne noreply at git.blender.org
Fri Oct 7 10:23:06 CEST 2016


Commit: e7981a3e93be84d7e141d43dfd4516cfcb271ec3
Author: Bastien Montagne
Date:   Fri Oct 7 10:19:22 2016 +0200
Branches: master
https://developer.blender.org/rBe7981a3e93be84d7e141d43dfd4516cfcb271ec3

Fix T49595: bpy - negative skin_vertices radius crashes Blender

This is unsigned value (negative radius does not have much sense anyway!).

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

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 df034ed..7c66f43 100644
--- a/source/blender/makesrna/intern/rna_mesh.c
+++ b/source/blender/makesrna/intern/rna_mesh.c
@@ -3200,9 +3200,9 @@ static void rna_def_skin_vertices(BlenderRNA *brna, PropertyRNA *UNUSED(cprop))
 	RNA_def_struct_ui_text(srna, "Skin Vertex", "Per-vertex skin data for use with the Skin modifier");
 	RNA_def_struct_path_func(srna, "rna_MeshSkinVertex_path");
 
-	prop = RNA_def_property(srna, "radius", PROP_FLOAT, PROP_NONE);
+	prop = RNA_def_property(srna, "radius", PROP_FLOAT, PROP_UNSIGNED);
 	RNA_def_property_array(prop, 2);
-	RNA_def_property_ui_range(prop, 0.001, 100, 1, 3);
+	RNA_def_property_ui_range(prop, 0.001, 100.0, 1, 3);
 	RNA_def_property_ui_text(prop, "Radius", "Radius of the skin");
 	RNA_def_property_update(prop, 0, "rna_Mesh_update_data");




More information about the Bf-blender-cvs mailing list