[Bf-blender-cvs] [6c1f357c2ab] greasepencil-object: GPencil: Make rotation angle allows negative values

Antonio Vazquez noreply at git.blender.org
Sun Feb 16 20:08:36 CET 2020


Commit: 6c1f357c2abd8f710f4f39745d2b13b344505e31
Author: Antonio Vazquez
Date:   Sun Feb 16 20:08:22 2020 +0100
Branches: greasepencil-object
https://developer.blender.org/rB6c1f357c2abd8f710f4f39745d2b13b344505e31

GPencil: Make rotation angle allows negative values

Use only positive values only rotate in one direction

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

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

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

diff --git a/source/blender/makesrna/intern/rna_shader_fx.c b/source/blender/makesrna/intern/rna_shader_fx.c
index c9c17c850b4..d1a7f0ad0cc 100644
--- a/source/blender/makesrna/intern/rna_shader_fx.c
+++ b/source/blender/makesrna/intern/rna_shader_fx.c
@@ -232,7 +232,7 @@ static void rna_def_shader_fx_blur(BlenderRNA *brna)
 
   prop = RNA_def_property(srna, "rotation", PROP_FLOAT, PROP_ANGLE);
   RNA_def_property_float_sdna(prop, NULL, "rotation");
-  RNA_def_property_range(prop, 0.0f, FLT_MAX);
+  RNA_def_property_range(prop, -FLT_MAX, FLT_MAX);
   RNA_def_property_ui_text(prop, "Rotation", "Rotation of the effect");
   RNA_def_property_update(prop, NC_OBJECT | ND_MODIFIER, "rna_ShaderFx_update");
 
@@ -561,7 +561,7 @@ static void rna_def_shader_fx_glow(BlenderRNA *brna)
 
   prop = RNA_def_property(srna, "rotation", PROP_FLOAT, PROP_ANGLE);
   RNA_def_property_float_sdna(prop, NULL, "rotation");
-  RNA_def_property_range(prop, 0.0f, FLT_MAX);
+  RNA_def_property_range(prop, -FLT_MAX, FLT_MAX);
   RNA_def_property_ui_text(prop, "Rotation", "Rotation of the effect");
   RNA_def_property_update(prop, NC_OBJECT | ND_MODIFIER, "rna_ShaderFx_update");



More information about the Bf-blender-cvs mailing list