Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Eagar <joeedh@gmail.com>2022-04-16 04:49:38 +0300
committerJoseph Eagar <joeedh@gmail.com>2022-04-16 04:49:38 +0300
commit2b191cd2b41b7eaa794ef8d7f702482ab3d1b6eb (patch)
tree0ecd5cbfb333b47a114136906493cd4a8c19e526 /source/blender/blenkernel/intern/paint.c
parent8eb40d2063149b03db6665993856f08201eadd04 (diff)
Mask by color now auto-creates a
color attribute if one does not exist, and no longer passes through to the translate tool on tweak grab.
Diffstat (limited to 'source/blender/blenkernel/intern/paint.c')
-rw-r--r--source/blender/blenkernel/intern/paint.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/paint.c b/source/blender/blenkernel/intern/paint.c
index c0195e5abc8..5fd7984ea90 100644
--- a/source/blender/blenkernel/intern/paint.c
+++ b/source/blender/blenkernel/intern/paint.c
@@ -1869,6 +1869,10 @@ void BKE_sculpt_color_layer_create_if_needed(struct Object *object)
BKE_id_attributes_active_color_set(&orig_me->id, layer);
DEG_id_tag_update(&orig_me->id, ID_RECALC_GEOMETRY_ALL_MODES);
+
+ if (object->sculpt && object->sculpt->pbvh) {
+ BKE_pbvh_update_active_vcol(object->sculpt->pbvh, orig_me);
+ }
}
void BKE_sculpt_update_object_for_edit(