[Bf-blender-cvs] [26e796c04fb] greasepencil-object: Chnage angle limits to allow negative values

Antonio Vazquez noreply at git.blender.org
Sat Aug 19 13:40:15 CEST 2017


Commit: 26e796c04fb509b722e2fd05604584eb26dcd8a3
Author: Antonio Vazquez
Date:   Sat Aug 19 13:39:37 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rB26e796c04fb509b722e2fd05604584eb26dcd8a3

Chnage angle limits to allow negative values

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

M	source/blender/makesrna/intern/rna_modifier.c

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

diff --git a/source/blender/makesrna/intern/rna_modifier.c b/source/blender/makesrna/intern/rna_modifier.c
index 2a1bd4e65cf..b7b90b6a202 100644
--- a/source/blender/makesrna/intern/rna_modifier.c
+++ b/source/blender/makesrna/intern/rna_modifier.c
@@ -5504,8 +5504,8 @@ static void rna_def_modifier_gpencilswirl(BlenderRNA *brna)
 
 	prop = RNA_def_property(srna, "angle", PROP_FLOAT, PROP_ANGLE);
 	RNA_def_property_float_sdna(prop, NULL, "angle");
-	RNA_def_property_range(prop, 0, DEG2RAD(4 * 360));
-	RNA_def_property_ui_range(prop, 0, DEG2RAD(4 * 360), 5, 2);
+	RNA_def_property_range(prop, DEG2RAD(-5 * 360), DEG2RAD(5 * 360));
+	RNA_def_property_ui_range(prop, DEG2RAD(-5 * 360), DEG2RAD(5 * 360), 5, 2);
 	RNA_def_property_ui_text(prop, "Angle", "Angle of rotation");
 	RNA_def_property_update(prop, 0, "rna_Modifier_update");



More information about the Bf-blender-cvs mailing list