Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2018-10-24 06:00:55 +0300
committerDalai Felinto <dfelinto@gmail.com>2018-10-24 06:00:57 +0300
commit175326fed75a829b2ded759c31e915a3f2deba95 (patch)
treeffa6159b8aab70f2f7bf0917344410fcf8041d30 /source/blender/editors/lattice/editlattice_tools.c
parent975974e291e05881a7a2fed6f6647ce7c551dde7 (diff)
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.
Diffstat (limited to 'source/blender/editors/lattice/editlattice_tools.c')
-rw-r--r--source/blender/editors/lattice/editlattice_tools.c4
1 files changed, 4 insertions, 0 deletions
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;
}