Cleanup: bool
This commit is contained in:
@@ -228,7 +228,7 @@ void bvhtree_update_from_cloth(ClothModifierData *clmd, int moving)
|
||||
ClothVertex *verts = cloth->verts;
|
||||
MFace *mfaces;
|
||||
float co[12], co_moving[12];
|
||||
int ret = 0;
|
||||
bool ret = false;
|
||||
|
||||
if (!bvhtree)
|
||||
return;
|
||||
|
@@ -110,7 +110,7 @@ void bvhtree_update_from_mvert(BVHTree *bvhtree, MFace *faces, int numfaces, MVe
|
||||
int i;
|
||||
MFace *mfaces = faces;
|
||||
float co[12], co_moving[12];
|
||||
int ret = 0;
|
||||
bool ret = false;
|
||||
|
||||
if ( !bvhtree )
|
||||
return;
|
||||
|
@@ -89,7 +89,7 @@ void BLI_bvhtree_insert(BVHTree *tree, int index, const float co[3], int numpoin
|
||||
void BLI_bvhtree_balance(BVHTree *tree);
|
||||
|
||||
/* update: first update points/nodes, then call update_tree to refit the bounding volumes */
|
||||
int BLI_bvhtree_update_node(BVHTree *tree, int index, const float co[3], const float co_moving[3], int numpoints);
|
||||
bool BLI_bvhtree_update_node(BVHTree *tree, int index, const float co[3], const float co_moving[3], int numpoints);
|
||||
void BLI_bvhtree_update_tree(BVHTree *tree);
|
||||
|
||||
/* collision/overlap: check two trees if they overlap, alloc's *overlap with length of the int return value */
|
||||
|
@@ -979,7 +979,7 @@ void BLI_bvhtree_insert(BVHTree *tree, int index, const float co[3], int numpoin
|
||||
|
||||
|
||||
/* call before BLI_bvhtree_update_tree() */
|
||||
int BLI_bvhtree_update_node(BVHTree *tree, int index, const float co[3], const float co_moving[3], int numpoints)
|
||||
bool BLI_bvhtree_update_node(BVHTree *tree, int index, const float co[3], const float co_moving[3], int numpoints)
|
||||
{
|
||||
BVHNode *node = NULL;
|
||||
axis_t axis_iter;
|
||||
|
@@ -537,7 +537,7 @@ void BM_mesh_select_mode_set(BMesh *bm, int selectmode)
|
||||
* counts number of elements with flag enabled/disabled
|
||||
*/
|
||||
static int bm_mesh_flag_count(BMesh *bm, const char htype, const char hflag,
|
||||
const short respecthide, const bool test_for_enabled)
|
||||
const bool respecthide, const bool test_for_enabled)
|
||||
{
|
||||
BMElem *ele;
|
||||
BMIter iter;
|
||||
|
Reference in New Issue
Block a user