From 76ed87bcf9442c9406965fc41bbffc200b4e15f7 Mon Sep 17 00:00:00 2001 From: Falk David Date: Mon, 27 May 2024 16:48:41 +0200 Subject: [PATCH] GPv3: Draw Tool: Use hardness value from tool settings Use the `hardness` value from the grease pencil tool setting to set the (now called) `softness` attribute of the new stroke. --- source/blender/editors/sculpt_paint/grease_pencil_paint.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/sculpt_paint/grease_pencil_paint.cc b/source/blender/editors/sculpt_paint/grease_pencil_paint.cc index 0af245bae76..c606fc32d74 100644 --- a/source/blender/editors/sculpt_paint/grease_pencil_paint.cc +++ b/source/blender/editors/sculpt_paint/grease_pencil_paint.cc @@ -182,7 +182,7 @@ struct PaintOperationExecutor { std::make_optional(color_base) : std::nullopt; } - softness_ = 0.0f; + softness_ = 1.0f - settings_->hardness; BLI_assert(grease_pencil->has_active_layer()); drawing_ = grease_pencil->get_editable_drawing_at(*grease_pencil->get_active_layer(),