Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/sculpt_cloth.c
| Show First 20 Lines • Show All 799 Lines • ▼ Show 20 Lines | BKE_pbvh_vertex_iter_begin (ss->pbvh, data->nodes[n], vd, PBVH_ITER_UNIQUE) { | ||||
| copy_v3_v3(cloth_sim->prev_pos[i], temp); | copy_v3_v3(cloth_sim->prev_pos[i], temp); | ||||
| copy_v3_v3(cloth_sim->last_iteration_pos[i], cloth_sim->pos[i]); | copy_v3_v3(cloth_sim->last_iteration_pos[i], cloth_sim->pos[i]); | ||||
| copy_v3_fl(cloth_sim->acceleration[i], 0.0f); | copy_v3_fl(cloth_sim->acceleration[i], 0.0f); | ||||
| copy_v3_v3(vd.co, cloth_sim->pos[vd.index]); | copy_v3_v3(vd.co, cloth_sim->pos[vd.index]); | ||||
| if (vd.mvert) { | if (vd.mvert) { | ||||
| BKE_pbvh_vert_mark_update(ss->pbvh, vd.vertex); | BKE_pbvh_vert_tag_update_normal(ss->pbvh, vd.vertex); | ||||
| } | } | ||||
| } | } | ||||
| BKE_pbvh_vertex_iter_end; | BKE_pbvh_vertex_iter_end; | ||||
| /* Disable the simulation on this node, it needs to be enabled again to continue. */ | /* Disable the simulation on this node, it needs to be enabled again to continue. */ | ||||
| cloth_sim->node_state[node_index] = SCULPT_CLOTH_NODE_INACTIVE; | cloth_sim->node_state[node_index] = SCULPT_CLOTH_NODE_INACTIVE; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 878 Lines • Show Last 20 Lines | |||||