diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-05-03 18:04:12 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-05-03 18:41:45 +0400 |
commit | 08d899d1e7fe0c669954b197fef0e57269edfb79 (patch) | |
tree | 0b3e872af049ec1582068447d20e2a4579c94c7d /source/blender/blenkernel/intern/linestyle.c | |
parent | e08db08a84bffaab27bc4562fd41f44756eb2e3e (diff) |
Code cleanup: style
Diffstat (limited to 'source/blender/blenkernel/intern/linestyle.c')
-rw-r--r-- | source/blender/blenkernel/intern/linestyle.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/blenkernel/intern/linestyle.c b/source/blender/blenkernel/intern/linestyle.c index b0395931ffe..8028bdbc327 100644 --- a/source/blender/blenkernel/intern/linestyle.c +++ b/source/blender/blenkernel/intern/linestyle.c @@ -156,12 +156,12 @@ FreestyleLineStyle *BKE_copy_linestyle(FreestyleLineStyle *linestyle) BKE_free_linestyle(new_linestyle); for (a = 0; a < MAX_MTEX; a++) { - if (linestyle->mtex[a]) { - new_linestyle->mtex[a] = MEM_mallocN(sizeof(MTex), "BKE_copy_linestyle"); - memcpy(new_linestyle->mtex[a], linestyle->mtex[a], sizeof(MTex)); - id_us_plus((ID *)new_linestyle->mtex[a]->tex); - } - } + if (linestyle->mtex[a]) { + new_linestyle->mtex[a] = MEM_mallocN(sizeof(MTex), "BKE_copy_linestyle"); + memcpy(new_linestyle->mtex[a], linestyle->mtex[a], sizeof(MTex)); + id_us_plus((ID *)new_linestyle->mtex[a]->tex); + } + } if (linestyle->nodetree) { linestyle->nodetree = ntreeCopyTree(linestyle->nodetree); } |