diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-07-18 15:01:23 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-07-18 15:01:23 +0400 |
commit | 8f32070e9d29501853e7a4a11efea79005f8e4ec (patch) | |
tree | dbf2725c3a78a76aea23717d94bf587482a130b2 /source/blender | |
parent | c05af6210e557f3868d3769d1a633d1bbbd63e54 (diff) |
fix incorrect assert for mask face checking, also correct own bad spelling
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/cdderivedmesh.c | 2 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/mask_rasterize.c | 11 | ||||
-rw-r--r-- | source/blender/blenlib/intern/math_matrix.c | 2 | ||||
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_image.c | 4 | ||||
-rw-r--r-- | source/blender/windowmanager/intern/wm_operators.c | 2 |
5 files changed, 11 insertions, 10 deletions
diff --git a/source/blender/blenkernel/intern/cdderivedmesh.c b/source/blender/blenkernel/intern/cdderivedmesh.c index e5afc852846..b19b9db8749 100644 --- a/source/blender/blenkernel/intern/cdderivedmesh.c +++ b/source/blender/blenkernel/intern/cdderivedmesh.c @@ -2110,7 +2110,7 @@ void CDDM_calc_normals_mapping_ex(DerivedMesh *dm, const short only_face_normals /* No tessellation on this mesh yet, need to calculate one. * * Important not to update face normals from polys since it - * interfears with assigning the new normal layer in the following code. + * interferes with assigning the new normal layer in the following code. */ CDDM_recalc_tessellation_ex(dm, FALSE); } diff --git a/source/blender/blenkernel/intern/mask_rasterize.c b/source/blender/blenkernel/intern/mask_rasterize.c index 9ee10186861..9cdbc4205a3 100644 --- a/source/blender/blenkernel/intern/mask_rasterize.c +++ b/source/blender/blenkernel/intern/mask_rasterize.c @@ -64,7 +64,8 @@ unsigned int *_t = face; \ BLI_assert(_t[0] < vert_max); \ BLI_assert(_t[1] < vert_max); \ - BLI_assert(_t[2] < vert_max || _t[2] == TRI_VERT); \ + BLI_assert(_t[2] < vert_max); \ + BLI_assert(_t[3] < vert_max || _t[3] == TRI_VERT); \ } (void)0 void rotate_point(const float cent[2], const float angle, float p[2], const float asp[2]) @@ -94,7 +95,7 @@ void rotate_point(const float cent[2], const float angle, float p[2], const floa /* --------------------------------------------------------------------- */ /** - * A single #MaskRasterHandle contains multile #MaskRasterLayer's, + * A single #MaskRasterHandle contains multiple #MaskRasterLayer's, * each #MaskRasterLayer does its own lookup which contributes to * the final pixel with its own blending mode and the final pixel * is blended between these. @@ -801,7 +802,7 @@ void BKE_maskrasterize_handle_init(MaskRasterHandle *mr_handle, struct Mask *mas sf_vert_next = sf_vert->next; copy_v3_v3(cos, sf_vert->co); - /* remove so as not to interfear with fill (called after) */ + /* remove so as not to interfere with fill (called after) */ if (sf_vert->keyindex == SF_KEYINDEX_TEMP_ID) { BLI_remlink(&sf_ctx.fillvertbase, sf_vert); } @@ -812,13 +813,13 @@ void BKE_maskrasterize_handle_init(MaskRasterHandle *mr_handle, struct Mask *mas cos += 3; } - /* main scanfill */ + /* main scan-fill */ sf_tri_tot = BLI_scanfill_calc_ex(&sf_ctx, FALSE, zvec); face_array = MEM_mallocN(sizeof(*face_array) * (sf_tri_tot + tot_feather_quads), "maskrast_face_index"); face_index = 0; - /* tri's */ + /* faces */ face = (unsigned int *)face_array; for (sf_tri = sf_ctx.fillfacebase.first; sf_tri; sf_tri = sf_tri->next) { *(face++) = sf_tri->v3->tmp.u; diff --git a/source/blender/blenlib/intern/math_matrix.c b/source/blender/blenlib/intern/math_matrix.c index f159a6b9d17..3fb3d2b58ff 100644 --- a/source/blender/blenlib/intern/math_matrix.c +++ b/source/blender/blenlib/intern/math_matrix.c @@ -1111,7 +1111,7 @@ void mat3_to_rot_size(float rot[3][3], float size[3], float mat3[3][3]) /* rotation & scale are linked, we need to create the mat's * for these together since they are related. */ - /* so scale doesnt interfear with rotation [#24291] */ + /* so scale doesn't interfere with rotation [#24291] */ /* note: this is a workaround for negative matrix not working for rotation conversion, FIXME */ normalize_m3_m3(mat3_n, mat3); if (is_negative_m3(mat3)) { diff --git a/source/blender/editors/sculpt_paint/paint_image.c b/source/blender/editors/sculpt_paint/paint_image.c index 9746ba6dfa1..073e60ca87c 100644 --- a/source/blender/editors/sculpt_paint/paint_image.c +++ b/source/blender/editors/sculpt_paint/paint_image.c @@ -5241,7 +5241,7 @@ static void brush_drawcursor(bContext *C, int x, int y, void *UNUSED(customdata) pixel_size = size; } - /* fade out the brush (cheap trick to work around brush interfearing with sampling [#])*/ + /* fade out the brush (cheap trick to work around brush interfering with sampling [#])*/ if (pixel_size < PX_SIZE_FADE_MIN) { return; } @@ -5253,7 +5253,7 @@ static void brush_drawcursor(bContext *C, int x, int y, void *UNUSED(customdata) glTranslatef((float)x, (float)y, 0.0f); - /* No need to scale for uv sculpting, on the contrary it might be useful to keep unscaled */ + /* No need to scale for uv sculpting, on the contrary it might be useful to keep un-scaled */ if (use_zoom) glScalef(zoomx, zoomy, 1.0f); diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c index d905d981134..a55efc0b216 100644 --- a/source/blender/windowmanager/intern/wm_operators.c +++ b/source/blender/windowmanager/intern/wm_operators.c @@ -1066,7 +1066,7 @@ static uiBlock *wm_block_dialog_create(bContext *C, ARegion *ar, void *userData) /* clear so the OK button is left alone */ uiBlockSetFunc(block, NULL, NULL, NULL); - /* new column so as not to interfear with custom layouts [#26436] */ + /* new column so as not to interfere with custom layouts [#26436] */ { uiBlock *col_block; uiLayout *col; |