Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/sculpt.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 5,653 Lines • ▼ Show 20 Lines | if (brush->cloth_simulation_area_type == BRUSH_CLOTH_SIMULATION_AREA_LOCAL) { | ||||
| .center = ss->cache->initial_location, | .center = ss->cache->initial_location, | ||||
| }; | }; | ||||
| BKE_pbvh_search_gather(ss->pbvh, SCULPT_search_sphere_cb, &data, &nodes, &totnode); | BKE_pbvh_search_gather(ss->pbvh, SCULPT_search_sphere_cb, &data, &nodes, &totnode); | ||||
| } | } | ||||
| if (brush->cloth_simulation_area_type == BRUSH_CLOTH_SIMULATION_AREA_DYNAMIC) { | if (brush->cloth_simulation_area_type == BRUSH_CLOTH_SIMULATION_AREA_DYNAMIC) { | ||||
| SculptSearchSphereData data = { | SculptSearchSphereData data = { | ||||
| .ss = ss, | .ss = ss, | ||||
| .sd = sd, | .sd = sd, | ||||
| .radius_squared = square_f(ss->cache->initial_radius * (1.0 + brush->cloth_sim_limit)), | .radius_squared = square_f(ss->cache->radius * (1.0 + brush->cloth_sim_limit)), | ||||
| .original = false, | .original = false, | ||||
| .ignore_fully_ineffective = false, | .ignore_fully_ineffective = false, | ||||
| .center = ss->cache->location, | .center = ss->cache->location, | ||||
| }; | }; | ||||
| BKE_pbvh_search_gather(ss->pbvh, SCULPT_search_sphere_cb, &data, &nodes, &totnode); | BKE_pbvh_search_gather(ss->pbvh, SCULPT_search_sphere_cb, &data, &nodes, &totnode); | ||||
| } | } | ||||
| else { | else { | ||||
| /* Gobal simulation, get all nodes. */ | /* Gobal simulation, get all nodes. */ | ||||
| ▲ Show 20 Lines • Show All 3,537 Lines • Show Last 20 Lines | |||||