Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/subdiv_ccg.c
| Show First 20 Lines • Show All 1,503 Lines • ▼ Show 20 Lines | static SubdivCCGCoord coord_step_inside_from_boundary(const SubdivCCG *subdiv_ccg, | ||||
| } | } | ||||
| else if (result.x == 0) { | else if (result.x == 0) { | ||||
| ++result.x; | ++result.x; | ||||
| } | } | ||||
| else if (result.y == 0) { | else if (result.y == 0) { | ||||
| ++result.y; | ++result.y; | ||||
| } | } | ||||
| else { | else { | ||||
| BLI_assert(!"non-boundary element given"); | BLI_assert_msg(0, "non-boundary element given"); | ||||
| } | } | ||||
| return result; | return result; | ||||
| } | } | ||||
| BLI_INLINE | BLI_INLINE | ||||
| int next_grid_index_from_coord(const SubdivCCG *subdiv_ccg, const SubdivCCGCoord *coord) | int next_grid_index_from_coord(const SubdivCCG *subdiv_ccg, const SubdivCCGCoord *coord) | ||||
| { | { | ||||
| SubdivCCGFace *face = subdiv_ccg->grid_faces[coord->grid_index]; | SubdivCCGFace *face = subdiv_ccg->grid_faces[coord->grid_index]; | ||||
| ▲ Show 20 Lines • Show All 585 Lines • Show Last 20 Lines | |||||