[Bf-blender-cvs] [0b03ef7000d] greasepencil-object: Use same rotation factor in both sides

Antonio Vazquez noreply at git.blender.org
Tue Feb 20 17:02:25 CET 2018


Commit: 0b03ef7000dc020906c59129300e24ee84cb29a9
Author: Antonio Vazquez
Date:   Tue Feb 20 16:09:24 2018 +0100
Branches: greasepencil-object
https://developer.blender.org/rB0b03ef7000dc020906c59129300e24ee84cb29a9

Use same rotation factor in both sides

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

M	source/blender/editors/gpencil/gpencil_paint.c

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

diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c
index 3ae1600b582..047ec8b4f80 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -578,11 +578,12 @@ static short gp_stroke_addpoint(
 		}
 
 		/* apply random to uv texture rotation */
+		/* TODO: Add a UI parameter to control randomness */
 		if (BLI_frand() > 0.5f) {
 			pt->uv_rot = BLI_frand() * M_PI * -1;
 		}
 		else {
-			pt->uv_rot = BLI_frand() * M_PI_4;
+			pt->uv_rot = BLI_frand() * M_PI;
 		}
 		CLAMP(pt->uv_rot, -M_PI_2, M_PI_2);



More information about the Bf-blender-cvs mailing list