Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-04-02 06:41:28 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-04-02 06:41:28 +0400
commit670cdd5381b23b7ae1808262a12c0423c8fa73c7 (patch)
tree8947aaca6dfc415d8d346b4e5786e4548e566939 /source/blender/modifiers/intern
parent6c4d6757594dd942304048690ae539e51f9e9d0b (diff)
code cleanup:
always use if (...) even if the macros dont require it (confuses parsers) define macros without the ';'s included.
Diffstat (limited to 'source/blender/modifiers/intern')
-rw-r--r--source/blender/modifiers/intern/MOD_explode.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/source/blender/modifiers/intern/MOD_explode.c b/source/blender/modifiers/intern/MOD_explode.c
index 56aa0f3c939..32d88fe28bc 100644
--- a/source/blender/modifiers/intern/MOD_explode.c
+++ b/source/blender/modifiers/intern/MOD_explode.c
@@ -205,10 +205,11 @@ static MFace *get_dface(DerivedMesh *dm, DerivedMesh *split, int cur, int i, MFa
}
#define SET_VERTS(a, b, c, d) \
- v[0]=mf->v##a; uv[0]=a-1; \
- v[1]=mf->v##b; uv[1]=b-1; \
- v[2]=mf->v##c; uv[2]=c-1; \
- v[3]=mf->v##d; uv[3]=d-1;
+ v[0] = mf->v##a; uv[0]=a-1; \
+ v[1] = mf->v##b; uv[1]=b-1; \
+ v[2] = mf->v##c; uv[2]=c-1; \
+ v[3] = mf->v##d; uv[3]=d-1; \
+ (void)0
#define GET_ES(v1, v2) edgecut_get(eh, v1, v2)
#define INT_UV(uvf, c0, c1) interp_v2_v2v2(uvf, mf->uv[c0], mf->uv[c1], 0.5f)
@@ -683,30 +684,30 @@ static DerivedMesh * cutEdges(ExplodeModifierData *emd, DerivedMesh *dm)
case 10:
case 11:
case 15:
- SET_VERTS(1, 2, 3, 4)
+ SET_VERTS(1, 2, 3, 4);
break;
case 5:
case 6:
case 7:
- SET_VERTS(2, 3, 4, 1)
+ SET_VERTS(2, 3, 4, 1);
break;
case 9:
case 13:
- SET_VERTS(4, 1, 2, 3)
+ SET_VERTS(4, 1, 2, 3);
break;
case 12:
case 14:
- SET_VERTS(3, 4, 1, 2)
+ SET_VERTS(3, 4, 1, 2);
break;
case 21:
case 23:
- SET_VERTS(1, 2, 3, 4)
+ SET_VERTS(1, 2, 3, 4);
break;
case 19:
- SET_VERTS(2, 3, 1, 4)
+ SET_VERTS(2, 3, 1, 4);
break;
case 22:
- SET_VERTS(3, 1, 2, 4)
+ SET_VERTS(3, 1, 2, 4);
break;
}