diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-08-07 07:55:21 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-08-07 07:55:21 +0400 |
commit | 00b39c4e5b91b4291bb41a0ea1f7413d8aeba9f9 (patch) | |
tree | 49140a0bdcbf9c2ffa885ac0d338f071ec09538e /source/blender/modifiers | |
parent | 4f29aeeff2cfe1dbe0a12910932c48ee453a6de1 (diff) |
code cleanup: more confusion with 0/NULL/false
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r-- | source/blender/modifiers/intern/MOD_laplaciansmooth.c | 2 | ||||
-rw-r--r-- | source/blender/modifiers/intern/MOD_skin.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/modifiers/intern/MOD_laplaciansmooth.c b/source/blender/modifiers/intern/MOD_laplaciansmooth.c index 1abe1e97a23..3843ee6f535 100644 --- a/source/blender/modifiers/intern/MOD_laplaciansmooth.c +++ b/source/blender/modifiers/intern/MOD_laplaciansmooth.c @@ -366,7 +366,7 @@ static void init_laplacian_matrix(LaplacianSystem *sys) v1 = sys->vertexCos[idv1]; v2 = sys->vertexCos[idv2]; v3 = sys->vertexCos[idv3]; - v4 = has_4_vert ? sys->vertexCos[idv4] : 0; + v4 = has_4_vert ? sys->vertexCos[idv4] : NULL; if (has_4_vert) { areaf = area_quad_v3(v1, v2, v3, sys->vertexCos[sys->mfaces[i].v4]); diff --git a/source/blender/modifiers/intern/MOD_skin.c b/source/blender/modifiers/intern/MOD_skin.c index 56571f69e09..83ac9f34df3 100644 --- a/source/blender/modifiers/intern/MOD_skin.c +++ b/source/blender/modifiers/intern/MOD_skin.c @@ -1751,7 +1751,7 @@ static void skin_set_orig_indices(DerivedMesh *dm) totpoly = dm->getNumPolys(dm); orig = CustomData_add_layer(&dm->polyData, CD_ORIGINDEX, - CD_CALLOC, 0, totpoly); + CD_CALLOC, NULL, totpoly); for (i = 0; i < totpoly; i++) orig[i] = ORIGINDEX_NONE; } |