Cleanup & typo in assignment

This commit is contained in:
2014-09-14 17:26:45 +10:00
parent 1c9b80320f
commit 432d274990
5 changed files with 8 additions and 10 deletions

View File

@@ -187,7 +187,7 @@ static int pointref_cmp_yx(const void *a_, const void *b_)
* \param points An array of 2D points.
* \param n The number of points in points.
* \param r_points An array of the convex hull vertex indices (max is n).
* _must_ be allocated as ``n * 2`` becauise of how its used internally,
* _must_ be allocated as ``n * 2`` because of how its used internally,
* even though the final result will be no more then \a n in size.
* \returns the number of points in r_points.
*/

View File

@@ -661,12 +661,12 @@ static PolyIndex *pf_ear_tip_find(
static bool pf_ear_tip_check(PolyFill *pf, PolyIndex *pi_ear_tip)
{
/* localize */
PolyIndex *pi_curr;
const float (*coords)[2] = pf->coords;
#ifndef USE_KDTREE
const float *v1, *v2, *v3;
#else
/* localize */
const float (*coords)[2] = pf->coords;
PolyIndex *pi_curr;
#endif
#if defined(USE_CONVEX_SKIP) && !defined(USE_KDTREE)
@@ -711,8 +711,6 @@ static bool pf_ear_tip_check(PolyFill *pf, PolyIndex *pi_ear_tip)
return false;
}
}
(void)pi_curr;
(void)coords;
#else
v1 = coords[pi_ear_tip->prev->index];

View File

@@ -1967,7 +1967,7 @@ static int ui_text_position_from_hidden(uiBut *but, int pos)
static int ui_text_position_to_hidden(uiBut *but, int pos)
{
const char *butstr = butstr = (but->editstr) ? but->editstr : but->drawstr;
const char *butstr = (but->editstr) ? but->editstr : but->drawstr;
return BLI_strnlen_utf8(butstr, pos);
}

View File

@@ -1557,7 +1557,7 @@ static int wm_handler_operator_call(bContext *C, ListBase *handlers, wmEventHand
wmOperatorType *ot = op->type;
if (!wm_operator_check_locked_interface(C, ot)) {
/* Interface is locked and pperator is not allowed to run,
/* Interface is locked and operator is not allowed to run,
* nothing to do in this case.
*/
}

View File

@@ -1426,7 +1426,7 @@ wmKeyMap *WM_keymap_guess_opname(const bContext *C, const char *opname)
* BOID_OT
* BUTTONS_OT
* CONSTRAINT_OT
* DPAINT_OT
* PAINT_OT
* ED_OT
* FLUID_OT
* TEXTURE_OT