Commit: 56f85d156dbd76f8f4b6c45faf4fef70a1e5d119 Author: Antonio Vazquez Date: Mon Apr 20 17:57:30 2020 +0200 Branches: greasepencil-object https://developer.blender.org/rB56f85d156dbd76f8f4b6c45faf4fef70a1e5d119
GPencil: Change attenuation value for random HSV =================================================================== M source/blender/editors/gpencil/gpencil_utils.c =================================================================== diff --git a/source/blender/editors/gpencil/gpencil_utils.c b/source/blender/editors/gpencil/gpencil_utils.c index 4d0dff4226e..ef8cecffb99 100644 --- a/source/blender/editors/gpencil/gpencil_utils.c +++ b/source/blender/editors/gpencil/gpencil_utils.c @@ -2716,7 +2716,6 @@ void ED_gpencil_point_vertex_color_set(ToolSettings *ts, void ED_gpencil_sbuffer_vertex_color_random(bGPdata *gpd, Brush *brush, tGPspoint *tpt) { BrushGpencilSettings *brush_settings = brush->gpencil_settings; - const float soft = 0.50f; if (brush_settings->flag & GP_BRUSH_GROUP_RANDOM) { int ix = (int)tpt->x; @@ -2729,17 +2728,17 @@ void ED_gpencil_sbuffer_vertex_color_random(bGPdata *gpd, Brush *brush, tGPspoin /* Apply random to Hue. */ if (brush_settings->random_hue > 0.0f) { float rand = BLI_hash_int_01(BLI_hash_int_2d(ix, gpd->runtime.sbuffer_used)) * 2.0f - 1.0f; - factor_value[0] = rand * brush_settings->random_hue * soft; + factor_value[0] = rand * brush_settings->random_hue * 0.5f; } /* Apply random to Saturation. */ if (brush_settings->random_saturation > 0.0f) { float rand = BLI_hash_int_01(BLI_hash_int_2d(iy, gpd->runtime.sbuffer_used)) * 2.0f - 1.0f; - factor_value[1] = rand * brush_settings->random_saturation * soft; + factor_value[1] = rand * brush_settings->random_saturation; } /* Apply random to Value. */ if (brush_settings->random_value > 0.0f) { float rand = BLI_hash_int_01(BLI_hash_int_2d(iz, gpd->runtime.sbuffer_used)) * 2.0f - 1.0f; - factor_value[2] = rand * brush_settings->random_value * soft; + factor_value[2] = rand * brush_settings->random_value * 0.5f; } rgb_to_hsv_v(tpt->vert_color, hsv); add_v3_v3(hsv, factor_value); _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org https://lists.blender.org/mailman/listinfo/bf-blender-cvs