Commit: da21e035d33535ce8740f8b563deb73f9e52245e
Author: Joseph Eagar
Date:   Thu Jan 19 18:04:34 2023 -0800
Branches: master
https://developer.blender.org/rBda21e035d33535ce8740f8b563deb73f9e52245e

Sculpt: Fix T103923: Expand face sets now taking visibility into account

The code was never ported from the old system of encoding visibility
as negative face set values.

===================================================================

M       source/blender/editors/sculpt_paint/sculpt_expand.c

===================================================================

diff --git a/source/blender/editors/sculpt_paint/sculpt_expand.c 
b/source/blender/editors/sculpt_paint/sculpt_expand.c
index e1980f0ff6b..683eeed5111 100644
--- a/source/blender/editors/sculpt_paint/sculpt_expand.c
+++ b/source/blender/editors/sculpt_paint/sculpt_expand.c
@@ -256,7 +256,7 @@ static bool sculpt_expand_state_get(SculptSession *ss,
  */
 static bool sculpt_expand_face_state_get(SculptSession *ss, ExpandCache 
*expand_cache, const int f)
 {
-  if (expand_cache->original_face_sets[f] <= 0) {
+  if (ss->hide_poly && ss->hide_poly[f]) {
     return false;
   }

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to