Fix bugs in last commit.
This commit is contained in:
parent
f482afadab
commit
bfbe9a0d55
|
@ -517,7 +517,7 @@ void pbvh_vertex_iter_init(PBVH *pbvh, PBVHNode *node, PBVHVertexIter *vi, int m
|
|||
} \
|
||||
vi.co = vi.mvert->co; \
|
||||
vi.no = vi.mvert->no; \
|
||||
vi.index = vi.vert_indices[vi.i]; \
|
||||
vi.index = vi.vertex.i = vi.vert_indices[vi.i]; \
|
||||
if (vi.vmask) { \
|
||||
vi.mask = &vi.vmask[vi.index]; \
|
||||
} \
|
||||
|
|
|
@ -1102,6 +1102,8 @@ void SCULPT_cloth_brush_simulation_init(SculptSession *ss, SculptClothSimulation
|
|||
const int totverts = SCULPT_vertex_count_get(ss);
|
||||
const bool has_deformation_pos = cloth_sim->deformation_pos != NULL;
|
||||
const bool has_softbody_pos = cloth_sim->softbody_pos != NULL;
|
||||
SCULPT_vertex_random_access_ensure(ss);
|
||||
|
||||
for (int i = 0; i < totverts; i++) {
|
||||
SculptVertRef vertex = BKE_pbvh_table_index_to_vertex(ss->pbvh, i);
|
||||
|
||||
|
|
Loading…
Reference in New Issue