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-09-29 11:47:10 +0300
committerJoseph Eagar <joeedh@gmail.com>2022-09-29 11:47:40 +0300
commit6d3da28676d704c992e54d796071b872e0aced14 (patch)
tree1f070a297b67a2519e58028feca1791c4f840731 /source/blender/draw
parent4bdba62cb94978c94d29150d2fd426ca18aa8d0d (diff)
Sculpt: fix draw face sets not updating on first stroke
Diffstat (limited to 'source/blender/draw')
-rw-r--r--source/blender/draw/intern/draw_pbvh.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/draw/intern/draw_pbvh.cc b/source/blender/draw/intern/draw_pbvh.cc
index 2f325f7cf62..895abdfc2ac 100644
--- a/source/blender/draw/intern/draw_pbvh.cc
+++ b/source/blender/draw/intern/draw_pbvh.cc
@@ -558,10 +558,10 @@ struct PBVHBatches {
foreach_faces(
[&](int /*buffer_i*/, int /*tri_i*/, int /*vertex_i*/, const MLoopTri *tri) {
- if (last_poly != tri->poly && args->face_sets) {
+ if (last_poly != tri->poly) {
last_poly = tri->poly;
- const int fset = abs(face_sets[tri->poly]);
+ const int fset = face_sets[tri->poly];
if (fset != args->face_sets_color_default) {
BKE_paint_face_set_overlay_color_get(