diff options
author | Aaron Carlisle <carlisle.b3d@gmail.com> | 2021-12-28 00:23:23 +0300 |
---|---|---|
committer | Aaron Carlisle <carlisle.b3d@gmail.com> | 2021-12-28 00:23:23 +0300 |
commit | 8c4edd1b379d486d3a4755573861509e2b921f64 (patch) | |
tree | 2a9c65f63b7dd4f5da8124ad9efbd5bd1aedc2e9 /source/blender/editors/gpencil/gpencil_paint.c | |
parent | d5b72fb06cd0405c4627d22711ab02804093400c (diff) |
Cleanup: clang format
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_paint.c')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_paint.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c index 5cccf165748..498c6baa4b1 100644 --- a/source/blender/editors/gpencil/gpencil_paint.c +++ b/source/blender/editors/gpencil/gpencil_paint.c @@ -736,7 +736,8 @@ static void gpencil_apply_randomness(tGPsdata *p, /* Apply randomness to uv texture rotation. */ if ((brush_settings->uv_random > 0.0f) && (uv)) { if ((brush_settings->flag2 & GP_BRUSH_USE_UV_AT_STROKE) == 0) { - float rand = BLI_hash_int_01(BLI_hash_int_2d((int)pt->m_xy[0], gpd->runtime.sbuffer_used)) * 2.0f - + float rand = BLI_hash_int_01(BLI_hash_int_2d((int)pt->m_xy[0], gpd->runtime.sbuffer_used)) * + 2.0f - 1.0f; value = rand * M_PI_2 * brush_settings->uv_random; } |