diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2016-10-07 11:19:22 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2016-10-07 11:19:22 +0300 |
commit | e7981a3e93be84d7e141d43dfd4516cfcb271ec3 (patch) | |
tree | 139e17a53e1cda4e6f5fa7535ff9e7343ef6448f /source/blender/makesrna/intern | |
parent | ec6b593072e461b99543fc1c839766c9e99779ab (diff) |
Fix T49595: bpy - negative skin_vertices radius crashes Blender
This is unsigned value (negative radius does not have much sense anyway!).
Diffstat (limited to 'source/blender/makesrna/intern')
-rw-r--r-- | source/blender/makesrna/intern/rna_mesh.c | 4 |
1 files 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"); |