diff options
author | julianeisel <julian_eisel@web.de> | 2014-12-26 22:00:52 +0300 |
---|---|---|
committer | julianeisel <julian_eisel@web.de> | 2014-12-26 22:00:52 +0300 |
commit | fd4720204399e16032574159699d5a26a250e6d5 (patch) | |
tree | ed6e0478eb56577ce3ab58a8a0dbb36aee9269b9 /source/blender/editors/gpencil/gpencil_undo.c | |
parent | 3253ed9e26dd146d11f5bf9ff1a2dce3dbf744ec (diff) |
GPencil: Picky whitespace cleanup
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_undo.c')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_undo.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/source/blender/editors/gpencil/gpencil_undo.c b/source/blender/editors/gpencil/gpencil_undo.c index b1bbeabbd55..ed84f75863e 100644 --- a/source/blender/editors/gpencil/gpencil_undo.c +++ b/source/blender/editors/gpencil/gpencil_undo.c @@ -29,6 +29,7 @@ * \ingroup edgpencil */ + #include <stdlib.h> #include <string.h> @@ -133,12 +134,12 @@ void gpencil_undo_push(bGPdata *gpd) while (undo_node) { bGPundonode *next_node = undo_node->next; - + /* HACK: animdata wasn't duplicated, so it shouldn't be freed here, - * or else the real copy will segfault when accessed + * or else the real copy will segfault when accessed */ undo_node->gpd->adt = NULL; - + BKE_gpencil_free(undo_node->gpd); MEM_freeN(undo_node->gpd); @@ -163,10 +164,10 @@ void gpencil_undo_finish(void) while (undo_node) { /* HACK: animdata wasn't duplicated, so it shouldn't be freed here, - * or else the real copy will segfault when accessed + * or else the real copy will segfault when accessed */ undo_node->gpd->adt = NULL; - + BKE_gpencil_free(undo_node->gpd); MEM_freeN(undo_node->gpd); |