mirror of
https://github.com/blender/blender
synced 2026-09-28 12:24:36 +03:00
Fix: GPv3: Default value for fill opacity in opacity modifier
Make sure the default value for the fill opacity is 1 instead of 0.
This commit is contained in:
parent
5e04afcfa8
commit
089a435376
1 changed files with 3 additions and 1 deletions
|
|
@ -131,7 +131,9 @@ static void modify_fill_color(const GreasePencilOpacityModifierData &omd,
|
|||
bke::MutableAttributeAccessor attributes = curves.attributes_for_write();
|
||||
/* Fill color opacity per stroke. */
|
||||
bke::SpanAttributeWriter<float> fill_opacities = attributes.lookup_or_add_for_write_span<float>(
|
||||
"fill_opacity", bke::AttrDomain::Curve);
|
||||
"fill_opacity",
|
||||
bke::AttrDomain::Curve,
|
||||
bke::AttributeInitVArray(VArray<float>::ForSingle(1.0f, curves.curves_num())));
|
||||
const VArray<float> vgroup_weights = modifier::greasepencil::get_influence_vertex_weights(
|
||||
curves, omd.influence);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue