From e7981a3e93be84d7e141d43dfd4516cfcb271ec3 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Fri, 7 Oct 2016 10:19:22 +0200 Subject: [PATCH] Fix T49595: bpy - negative skin_vertices radius crashes Blender This is unsigned value (negative radius does not have much sense anyway!). --- source/blender/makesrna/intern/rna_mesh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blender/makesrna/intern/rna_mesh.c b/source/blender/makesrna/intern/rna_mesh.c index df034ed85d8..7c66f43fe00 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");