Code cleanup

This commit is contained in:
Campbell Barton
2014-07-18 11:54:09 +10:00
parent 6a58557794
commit a04a8039f0
4 changed files with 9 additions and 9 deletions

View File

@@ -390,7 +390,7 @@ float RB_body_get_mass(rbRigidBody *object)
float value = (float)body->getInvMass(); float value = (float)body->getInvMass();
if (value) if (value)
value = 1.0 / value; value = 1.0f / value;
return value; return value;
} }

View File

@@ -471,7 +471,7 @@ void BKE_rigidbody_calc_volume(Object *ob, float *r_vol)
/* if automatically determining dimensions, use the Object's boundbox /* if automatically determining dimensions, use the Object's boundbox
* - assume that all quadrics are standing upright on local z-axis * - assume that all quadrics are standing upright on local z-axis
* - assume even distribution of mass around the Object's pivot * - assume even distribution of mass around the Object's pivot
* (i.e. Object pivot is centralised in boundbox) * (i.e. Object pivot is centralized in boundbox)
* - boundbox gives full width * - boundbox gives full width
*/ */
// XXX: all dimensions are auto-determined now... later can add stored settings for this // XXX: all dimensions are auto-determined now... later can add stored settings for this
@@ -567,7 +567,7 @@ void BKE_rigidbody_calc_center_of_mass(Object *ob, float r_com[3])
/* if automatically determining dimensions, use the Object's boundbox /* if automatically determining dimensions, use the Object's boundbox
* - assume that all quadrics are standing upright on local z-axis * - assume that all quadrics are standing upright on local z-axis
* - assume even distribution of mass around the Object's pivot * - assume even distribution of mass around the Object's pivot
* (i.e. Object pivot is centralised in boundbox) * (i.e. Object pivot is centralized in boundbox)
* - boundbox gives full width * - boundbox gives full width
*/ */
// XXX: all dimensions are auto-determined now... later can add stored settings for this // XXX: all dimensions are auto-determined now... later can add stored settings for this

View File

@@ -832,7 +832,7 @@ bool BM_face_split_edgenet(
BM_ELEM_API_FLAG_ENABLE(f_new, FACE_NET); BM_ELEM_API_FLAG_ENABLE(f_new, FACE_NET);
/* add new verts to keep finding loops for /* add new verts to keep finding loops for
* (verts betweem boundary and manifold edges) */ * (verts between boundary and manifold edges) */
l_iter = l_first = BM_FACE_FIRST_LOOP(f_new); l_iter = l_first = BM_FACE_FIRST_LOOP(f_new);
l_prev_is_boundary = (bm_edge_flagged_radial_count(l_iter->prev->e) == 1); l_prev_is_boundary = (bm_edge_flagged_radial_count(l_iter->prev->e) == 1);
do { do {