Fixup for LATTICE_OT_flip

Committed by accident (1076523b1b).
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.
This commit is contained in:
Dalai Felinto 2018-10-24 00:00:55 -03:00
parent 975974e291
commit 175326fed7
1 changed files with 4 additions and 0 deletions

View File

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