From 4eb90fc15cfe556ffc96a0f5319fcd0e5c02ab2f Mon Sep 17 00:00:00 2001 From: Joseph Eagar Date: Wed, 22 Feb 2023 23:04:53 -0800 Subject: [PATCH] Sculpt: Fix #104618 (again). SculptAttributeParams.stroke_only wasn't being applied to existing attributes properly. --- source/blender/blenkernel/intern/paint.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/blender/blenkernel/intern/paint.cc b/source/blender/blenkernel/intern/paint.cc index 6606034047a..c8d93c3039d 100644 --- a/source/blender/blenkernel/intern/paint.cc +++ b/source/blender/blenkernel/intern/paint.cc @@ -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; }