From 1fb113848eb3df464c48428fa7c04203cd8037fe Mon Sep 17 00:00:00 2001 From: Falk David Date: Fri, 9 Feb 2024 11:30:22 +0100 Subject: [PATCH] Fix: GPv3: Draw tool overwrites hardness value The draw tool didn't skip over the hardness attribute when initializing the rest of all the attributes with default values. --- 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 705430a796a..3bed25de282 100644 --- a/source/blender/editors/sculpt_paint/grease_pencil_paint.cc +++ b/source/blender/editors/sculpt_paint/grease_pencil_paint.cc @@ -258,7 +258,7 @@ struct PaintOperationExecutor { curves.points_range().take_back(1)); bke::fill_attribute_range_default(attributes, bke::AttrDomain::Curve, - {"curve_type", "material_index", "cyclic"}, + {"curve_type", "material_index", "cyclic", "hardness"}, curves.curves_range().take_back(1)); drawing_->tag_topology_changed();