Sculpt: Fix #104618 (again).

SculptAttributeParams.stroke_only wasn't being
applied to existing attributes properly.
This commit is contained in:
Joseph Eagar
2023-02-22 23:04:53 -08:00
parent 7f256e0d33
commit 4eb90fc15c

View File

@@ -2719,6 +2719,11 @@ static SculptAttribute *sculpt_attribute_ensure_ex(Object *ob,
if (attr) {
sculpt_attr_update(ob, attr);
/* Since "stroke_only" is not a CustomData flag we have
* to sync its parameter setting manually. Fixes #104618.
*/
attr->params.stroke_only = params->stroke_only;
return attr;
}