Commit: 175326fed75a829b2ded759c31e915a3f2deba95
Author: Dalai Felinto
Date:   Wed Oct 24 00:00:55 2018 -0300
Branches: blender2.8
https://developer.blender.org/rB175326fed75a829b2ded759c31e915a3f2deba95

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.

===================================================================

M       source/blender/editors/lattice/editlattice_tools.c

===================================================================

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;
 }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to