From fd4720204399e16032574159699d5a26a250e6d5 Mon Sep 17 00:00:00 2001 From: julianeisel Date: Fri, 26 Dec 2014 20:00:52 +0100 Subject: GPencil: Picky whitespace cleanup --- source/blender/editors/gpencil/gpencil_undo.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'source/blender/editors/gpencil/gpencil_undo.c') 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 #include @@ -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); -- cgit v1.2.3