[Bf-blender-cvs] [86972d294f7] temp_bmesh_multires: Dyntopo sculpt: fix bug with boundary flags
Joseph Eagar
noreply at git.blender.org
Sat Sep 11 22:38:57 CEST 2021
Commit: 86972d294f7f9036e5f1d82a8e109e32b260bd33
Author: Joseph Eagar
Date: Sat Sep 11 13:38:42 2021 -0700
Branches: temp_bmesh_multires
https://developer.blender.org/rB86972d294f7f9036e5f1d82a8e109e32b260bd33
Dyntopo sculpt: fix bug with boundary flags
===================================================================
M source/blender/blenkernel/intern/dyntopo.c
===================================================================
diff --git a/source/blender/blenkernel/intern/dyntopo.c b/source/blender/blenkernel/intern/dyntopo.c
index 211a35a3abd..f9e90ede763 100644
--- a/source/blender/blenkernel/intern/dyntopo.c
+++ b/source/blender/blenkernel/intern/dyntopo.c
@@ -592,7 +592,7 @@ BLI_INLINE void surface_smooth_v_safe(PBVH *pbvh, BMVert *v, float fac)
MDynTopoVert *mv2 = BKE_PBVH_DYNVERT(cd_dyn_vert, v2);
const bool bound2 = mv2->flag & DYNVERT_SMOOTH_BOUNDARY;
- if (bound1 && !bound2) {
+ if (bound1 != bound2) {
continue;
}
@@ -2948,7 +2948,7 @@ static void short_edge_queue_create(EdgeQueueContext *eq_ctx,
continue;
}
- if (!(mv1->flag & DYNVERT_ALL_BOUNDARY) != !(mv2->flag & DYNVERT_ALL_BOUNDARY)) {
+ if ((mv1->flag & DYNVERT_ALL_BOUNDARY) != (mv2->flag & DYNVERT_ALL_BOUNDARY)) {
continue;
}
More information about the Bf-blender-cvs
mailing list