Cleanup: replace 'unsigned in' with 'uint'
This commit is contained in:
@@ -1260,8 +1260,8 @@ int test_index_face(MFace *mface, CustomData *fdata, int mfindex, int nr)
|
||||
if (mface->v3 == 0) {
|
||||
static int corner_indices[4] = {1, 2, 0, 3};
|
||||
|
||||
SWAP(unsigned int, mface->v1, mface->v2);
|
||||
SWAP(unsigned int, mface->v2, mface->v3);
|
||||
SWAP(uint, mface->v1, mface->v2);
|
||||
SWAP(uint, mface->v2, mface->v3);
|
||||
|
||||
if (fdata) {
|
||||
CustomData_swap_corners(fdata, mfindex, corner_indices);
|
||||
@@ -1272,8 +1272,8 @@ int test_index_face(MFace *mface, CustomData *fdata, int mfindex, int nr)
|
||||
if (mface->v3 == 0 || mface->v4 == 0) {
|
||||
static int corner_indices[4] = {2, 3, 0, 1};
|
||||
|
||||
SWAP(unsigned int, mface->v1, mface->v3);
|
||||
SWAP(unsigned int, mface->v2, mface->v4);
|
||||
SWAP(uint, mface->v1, mface->v3);
|
||||
SWAP(uint, mface->v2, mface->v4);
|
||||
|
||||
if (fdata) {
|
||||
CustomData_swap_corners(fdata, mfindex, corner_indices);
|
||||
@@ -1375,7 +1375,7 @@ void BKE_mesh_material_index_clear(Mesh *me)
|
||||
}
|
||||
}
|
||||
|
||||
void BKE_mesh_material_remap(Mesh *me, const unsigned int *remap, unsigned int remap_len)
|
||||
void BKE_mesh_material_remap(Mesh *me, const uint *remap, uint remap_len)
|
||||
{
|
||||
const short remap_len_short = (short)remap_len;
|
||||
|
||||
@@ -1439,10 +1439,7 @@ int poly_find_loop_from_vert(const MPoly *poly, const MLoop *loopstart, uint ver
|
||||
* vertex. Returns the index of the loop matching vertex, or -1 if the
|
||||
* vertex is not in \a poly
|
||||
*/
|
||||
int poly_get_adj_loops_from_vert(const MPoly *poly,
|
||||
const MLoop *mloop,
|
||||
unsigned int vert,
|
||||
unsigned int r_adj[2])
|
||||
int poly_get_adj_loops_from_vert(const MPoly *poly, const MLoop *mloop, uint vert, uint r_adj[2])
|
||||
{
|
||||
int corner = poly_find_loop_from_vert(poly, &mloop[poly->loopstart], vert);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user