forked from bartvdbraak/blender
fix memory leak in validating mesh and remove unneeded knife operator settings store.
This commit is contained in:
parent
ec6c3f632e
commit
6d2cd24010
@ -1154,6 +1154,8 @@ void mesh_strip_loose_edges(Mesh *me)
|
||||
for (a = 0, l = me->mloop; a < me->totloop; a++, l++) {
|
||||
l->e = new_idx[l->e];
|
||||
}
|
||||
|
||||
MEM_freeN(new_idx);
|
||||
}
|
||||
|
||||
void mball_to_mesh(ListBase *lb, Mesh *me)
|
||||
|
@ -2721,10 +2721,6 @@ static void knifetool_exit(bContext *C, wmOperator *op)
|
||||
|
||||
WM_cursor_restore(CTX_wm_window(C));
|
||||
|
||||
/* remember setting for later */
|
||||
RNA_boolean_set(op->ptr, "use_occlude_geometry", !kcd->cut_through);
|
||||
WM_operator_last_properties_store(op); /* XXX - this is clunky but modal ops wont do this automatic */
|
||||
|
||||
/* deactivate the extra drawing stuff in 3D-View */
|
||||
ED_region_draw_cb_exit(kcd->ar->type, kcd->draw_handle);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user