Sculpt-dev: fix corruption in dyntopo
fast pbvh leaf builder callback.
This commit is contained in:
parent
66d362b464
commit
e5804dc607
|
@ -1906,7 +1906,9 @@ static void short_edge_queue_edge_add(EdgeQueueContext *eq_ctx, BMEdge *e)
|
|||
}
|
||||
}
|
||||
|
||||
static void long_edge_queue_face_add(EdgeQueueContext *eq_ctx, BMFace *f, bool ignore_frontface)
|
||||
ATTR_NO_OPT static void long_edge_queue_face_add(EdgeQueueContext *eq_ctx,
|
||||
BMFace *f,
|
||||
bool ignore_frontface)
|
||||
{
|
||||
#ifdef USE_EDGEQUEUE_FRONTFACE
|
||||
if (!ignore_frontface && eq_ctx->q->use_view_normal) {
|
||||
|
|
|
@ -1578,7 +1578,7 @@ static void pbvh_bmesh_create_leaf_fast_task_cb(void *__restrict userdata,
|
|||
|
||||
int old = BM_ELEM_CD_GET_INT(v, pbvh->cd_vert_node_offset);
|
||||
|
||||
char *ptr = (char *)v;
|
||||
char *ptr = (char *)v->head.data;
|
||||
ptr += pbvh->cd_vert_node_offset;
|
||||
|
||||
if (old == DYNTOPO_NODE_NONE &&
|
||||
|
|
Loading…
Reference in New Issue