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 1,140 Lines • ▼ Show 20 Lines | for (char i = 0; i <= symm; ++i) { | ||||
| if (!SCULPT_is_symmetry_iteration_valid(i, symm)) { | if (!SCULPT_is_symmetry_iteration_valid(i, symm)) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| int v = -1; | int v = -1; | ||||
| if (i == 0) { | if (i == 0) { | ||||
| v = SCULPT_active_vertex_get(ss); | v = SCULPT_active_vertex_get(ss); | ||||
| } | } | ||||
| else if (radius > 0.0f) { | else if (radius > 0.0f) { | ||||
| float radius_squared = (radius == FLT_MAX) ? FLT_MAX : radius * radius; | |||||
| float location[3]; | float location[3]; | ||||
| flip_v3_v3(location, SCULPT_active_vertex_co_get(ss), i); | flip_v3_v3(location, SCULPT_active_vertex_co_get(ss), i); | ||||
| v = SCULPT_nearest_vertex_get(sd, ob, location, radius_squared, false); | v = SCULPT_nearest_vertex_get(sd, ob, location, radius, false); | ||||
| } | } | ||||
| if (v != -1) { | if (v != -1) { | ||||
| SCULPT_floodfill_add_initial(flood, v); | SCULPT_floodfill_add_initial(flood, v); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 8,276 Lines • Show Last 20 Lines | |||||