Code cleanup: comments and typos

This commit is contained in:
2014-03-18 02:40:39 +11:00
parent 7227117bed
commit ec4e12d9a2
9 changed files with 15 additions and 15 deletions

View File

@@ -368,11 +368,11 @@ static unsigned int pf_index_next(const PolyFill *pf, unsigned index)
} }
/** /**
* Triangulates the given (convex or concave) simple polygon to a list of triangle vertices. * Triangulates the given (convex or concave) simple polygon to a list of triangle vertices.
* \param vertices pairs describing vertices of the polygon, in either clockwise or counterclockwise order. * \param vertices pairs describing vertices of the polygon, in either clockwise or counterclockwise order.
* \return triples of triangle indices in clockwise order. * \return triples of triangle indices in clockwise order.
* Note the returned array is reused for later calls to the same method. * Note the returned array is reused for later calls to the same method.
*/ */
void BLI_polyfill_calc_ex( void BLI_polyfill_calc_ex(
const float (*coords)[2], const float (*coords)[2],
const unsigned int coords_tot, const unsigned int coords_tot,

View File

@@ -49,7 +49,7 @@
* for output slots, for single-type geometry slots, use the type name plus "out", * for output slots, for single-type geometry slots, use the type name plus "out",
* (e.g. verts.out), for double-type slots, use the two type names plus "out", * (e.g. verts.out), for double-type slots, use the two type names plus "out",
* (e.g. vertfaces.out), for three-type slots, use geom. note that you can also * (e.g. vertfaces.out), for three-type slots, use geom. note that you can also
* use more esohteric names (e.g. geom_skirt.out) so long as the comment next to the * use more esoteric names (e.g. geom_skirt.out) so long as the comment next to the
* slot definition tells you what types of elements are in it. * slot definition tells you what types of elements are in it.
* *
*/ */

View File

@@ -659,7 +659,7 @@ static void *bmw_LoopWalker_step(BMWalker *walker)
(owalk.is_single == false && vert_edge_tot > 2) || (owalk.is_single == false && vert_edge_tot > 2) ||
/* initial edge was a boundary, so is this edge and vertex is only apart of this face /* initial edge was a boundary, so is this edge and vertex is only apart of this face
* this lets us walk over the the boundary of an ngon which is handy */ * this lets us walk over the the boundary of an ngon which is handy */
(owalk.is_single == true && vert_edge_tot == 2 && BM_edge_is_boundary(e))) (owalk.is_single == true && vert_edge_tot == 2 && BM_edge_is_boundary(e)))
{ {
/* find next boundary edge in the fan */ /* find next boundary edge in the fan */

View File

@@ -761,7 +761,7 @@ static float visualkey_get_value(PointerRNA *ptr, PropertyRNA *prop, int array_i
int rotmode; int rotmode;
/* handle for Objects or PoseChannels only /* handle for Objects or PoseChannels only
* - only Location, Rotation or Scale keyframes are supported curently * - only Location, Rotation or Scale keyframes are supported currently
* - constraints can be on either Objects or PoseChannels, so we only check if the * - constraints can be on either Objects or PoseChannels, so we only check if the
* ptr->type is RNA_Object or RNA_PoseBone, which are the RNA wrapping-info for * ptr->type is RNA_Object or RNA_PoseBone, which are the RNA wrapping-info for
* those structs, allowing us to identify the owner of the data * those structs, allowing us to identify the owner of the data

View File

@@ -1389,8 +1389,8 @@ static void knife_find_line_hits(KnifeTool_OpData *kcd)
if (!(d1 <= vert_tol || d2 <= vert_tol || fabsf(d1 - d2) <= vert_tol)) { if (!(d1 <= vert_tol || d2 <= vert_tol || fabsf(d1 - d2) <= vert_tol)) {
lambda = d1 / d2; lambda = d1 / d2;
/* Can't just interpolate between ends of kfe because /* Can't just interpolate between ends of kfe because
* that doesn't work with perspective transformation. * that doesn't work with perspective transformation.
* Need to find 3d intersection of ray through sint */ * Need to find 3d intersection of ray through sint */
knife_input_ray_segment(kcd, sint, 1.0f, r1, r2); knife_input_ray_segment(kcd, sint, 1.0f, r1, r2);
isect_kind = isect_line_line_v3(kfe->v1->cageco, kfe->v2->cageco, r1, r2, p, p2); isect_kind = isect_line_line_v3(kfe->v1->cageco, kfe->v2->cageco, r1, r2, p, p2);
if (isect_kind >= 1 && point_is_visible(kcd, p, sint, &mats)) { if (isect_kind >= 1 && point_is_visible(kcd, p, sint, &mats)) {

View File

@@ -3659,7 +3659,7 @@ static int scene_new_exec(bContext *C, wmOperator *op)
else { /* different kinds of copying */ else { /* different kinds of copying */
newscene = BKE_scene_copy(scene, type); newscene = BKE_scene_copy(scene, type);
/* these can't be handled in blenkernel curently, so do them here */ /* these can't be handled in blenkernel currently, so do them here */
if (type == SCE_COPY_LINK_DATA) { if (type == SCE_COPY_LINK_DATA) {
ED_object_single_users(bmain, newscene, false, true); ED_object_single_users(bmain, newscene, false, true);
} }

View File

@@ -1095,7 +1095,7 @@ static int walkApply(bContext *C, WalkInfo *walk)
} }
/* the distance we would fall naturally smoothly enough that we /* the distance we would fall naturally smoothly enough that we
can manually drop the object without activating gravity */ * can manually drop the object without activating gravity */
fall_distance = time_redraw * walk->speed * WALK_BOOST_FACTOR; fall_distance = time_redraw * walk->speed * WALK_BOOST_FACTOR;
if (fabsf(difference) < fall_distance) { if (fabsf(difference) < fall_distance) {

View File

@@ -20,8 +20,8 @@
*/ */
/** \file blender/modifiers/intern/MOD_wireframe.c /** \file blender/modifiers/intern/MOD_wireframe.c
* \ingroup modifiers * \ingroup modifiers
*/ */
#include "MEM_guardedalloc.h" #include "MEM_guardedalloc.h"

View File

@@ -26,7 +26,7 @@ vector_data = (
# get data at different scales # get data at different scales
vector_data = sum( vector_data = sum(
(tuple(tuple(a * scale for a in v) for v in vector_data) (tuple(tuple(a * scale for a in v) for v in vector_data)
for scale in (s * sign for s in (0.0001, 0.1, -1.0, 10.0, 1000.0, 100000.0) for scale in (s * sign for s in (0.0001, 0.1, 1.0, 10.0, 1000.0, 100000.0)
for sign in (1.0, -1.0))), ()) + ((0.0, 0.0, 0.0),) for sign in (1.0, -1.0))), ()) + ((0.0, 0.0, 0.0),)