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.
This commit is contained in:
Falk David
2024-05-27 16:48:41 +02:00
parent 8269f1dd8a
commit 76ed87bcf9

View File

@@ -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(),