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");

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to