diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-05-01 06:53:45 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-05-01 06:53:45 +0400 |
commit | 950b4f5ec9250edc7e4a3bbb84a616e6cc3027bf (patch) | |
tree | 8d07a100e955de3d95bfaf36d54edc6c6c310282 /source/blender/editors/sculpt_paint/paint_image.c | |
parent | 77a0d70cdb006a97e82bb11843ef72edc784b250 (diff) |
style cleanup
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_image.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_image.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image.c b/source/blender/editors/sculpt_paint/paint_image.c index f059a0b1a0a..92b82d84c38 100644 --- a/source/blender/editors/sculpt_paint/paint_image.c +++ b/source/blender/editors/sculpt_paint/paint_image.c @@ -168,8 +168,10 @@ void *image_undo_find_tile(Image *ima, ImBuf *ibuf, int x_tile, int y_tile, unsi if (strcmp(tile->idname, ima->id.name) == 0 && strcmp(tile->ibufname, ibuf->name) == 0) { if (mask) { /* allocate mask if requested */ - if (!tile->mask) - tile->mask = MEM_callocN(sizeof(unsigned short)*IMAPAINT_TILE_SIZE*IMAPAINT_TILE_SIZE, "UndoImageTile.mask"); + if (!tile->mask) { + tile->mask = MEM_callocN(sizeof(unsigned short) * IMAPAINT_TILE_SIZE * IMAPAINT_TILE_SIZE, + "UndoImageTile.mask"); + } *mask = tile->mask; } |