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.
This commit is contained in:
Falk David
2024-02-09 11:30:22 +01:00
parent aa051f788d
commit 1fb113848e

View File

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