From 175326fed75a829b2ded759c31e915a3f2deba95 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Wed, 24 Oct 2018 00:00:55 -0300 Subject: Fixup for LATTICE_OT_flip Committed by accident (1076523b1b62a3d8833bf2a). But now I need to fix building. Note: The operator itself shouldn't have been committed because it should operate in the world space (for the axis), not local. I will tackle this later. --- source/blender/editors/lattice/editlattice_tools.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/editors/lattice') diff --git a/source/blender/editors/lattice/editlattice_tools.c b/source/blender/editors/lattice/editlattice_tools.c index 87fea4706e9..4fefe05b799 100644 --- a/source/blender/editors/lattice/editlattice_tools.c +++ b/source/blender/editors/lattice/editlattice_tools.c @@ -27,6 +27,9 @@ * \ingroup edlattice */ + +#include "MEM_guardedalloc.h" + #include "BLI_math.h" #include "BLI_utildefines.h" @@ -318,6 +321,7 @@ static int lattice_flip_exec(bContext *C, wmOperator *op) WM_event_add_notifier(C, NC_GEOM | ND_DATA, obedit->data); changed = true; } + MEM_freeN(objects); return changed ? OPERATOR_FINISHED : OPERATOR_CANCELLED; } -- cgit v1.2.3