From 333cdbb41025db012239e0549a439515880aad9b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 18 Apr 2019 07:21:26 +0200 Subject: Cleanup: comment blocks --- source/blender/modifiers/intern/MOD_screw.c | 32 ++++++++++++++-------- source/blender/modifiers/intern/MOD_skin.c | 2 +- .../blender/modifiers/intern/MOD_weighted_normal.c | 10 +++---- 3 files changed, 26 insertions(+), 18 deletions(-) (limited to 'source/blender/modifiers') diff --git a/source/blender/modifiers/intern/MOD_screw.c b/source/blender/modifiers/intern/MOD_screw.c index 54db5bede8d..8fadfbaff07 100644 --- a/source/blender/modifiers/intern/MOD_screw.c +++ b/source/blender/modifiers/intern/MOD_screw.c @@ -717,26 +717,34 @@ static Mesh *applyModifier(ModifierData *md, const ModifierEvalContext *ctx, Mes /*printf("\t\t\tFlipping 0\n");*/ SWAP(unsigned int, lt_iter.e->v1, lt_iter.e->v2); } - /* else { - printf("\t\t\tFlipping Not 0\n"); - }*/ +#if 0 + else { + printf("\t\t\tFlipping Not 0\n"); + } +#endif } else if (lt_iter.v == lt_iter.e->v2) { if (ed_loop_flip == 1) { /*printf("\t\t\tFlipping 1\n");*/ SWAP(unsigned int, lt_iter.e->v1, lt_iter.e->v2); } - /* else { - printf("\t\t\tFlipping Not 1\n"); - }*/ +#if 0 + else { + printf("\t\t\tFlipping Not 1\n"); + } +#endif } - /* else { - printf("\t\tIncorrect edge topology"); - }*/ +#if 0 + else { + printf("\t\tIncorrect edge topology"); + } +#endif + } +#if 0 + else { + printf("\t\tNo Edge at this point\n"); } - /* else { - printf("\t\tNo Edge at this point\n"); - }*/ +#endif screwvert_iter_step(<_iter); } } diff --git a/source/blender/modifiers/intern/MOD_skin.c b/source/blender/modifiers/intern/MOD_skin.c index 78f628199d3..e114483759e 100644 --- a/source/blender/modifiers/intern/MOD_skin.c +++ b/source/blender/modifiers/intern/MOD_skin.c @@ -1178,7 +1178,7 @@ static BMFace *skin_hole_target_face(BMesh *bm, Frame *frame) f = center_target_face; /* This case is unlikely now, but could still happen. Should look - * into splitting edges to make new faces. */ + * into splitting edges to make new faces. */ #if PRINT_HOLE_INFO if (!f) { printf("no good face found\n"); diff --git a/source/blender/modifiers/intern/MOD_weighted_normal.c b/source/blender/modifiers/intern/MOD_weighted_normal.c index 2162f223b7a..210f67ef07a 100644 --- a/source/blender/modifiers/intern/MOD_weighted_normal.c +++ b/source/blender/modifiers/intern/MOD_weighted_normal.c @@ -566,11 +566,11 @@ MVert *mvert = result->mvert; MLoop *mloop = result->mloop; /* Right now: - * If weight = 50 then all faces are given equal weight. - * If weight > 50 then more weight given to faces with larger vals (face area / corner angle). - * If weight < 50 then more weight given to faces with lesser vals. However current calculation - * does not converge to min/max. - */ + * If weight = 50 then all faces are given equal weight. + * If weight > 50 then more weight given to faces with larger vals (face area / corner angle). + * If weight < 50 then more weight given to faces with lesser vals. However current calculation + * does not converge to min/max. + */ float weight = ((float)wnmd->weight) / 50.0f; if (wnmd->weight == 100) { weight = (float)SHRT_MAX; -- cgit v1.2.3