From 973771723414e49709c100b1c3a48c7bdeb51cdd Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 1 Mar 2014 20:14:20 +1100 Subject: Fix for some unlikely memory leaks, remove redundant checks --- source/blender/editors/uvedit/uvedit_parametrizer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/editors/uvedit/uvedit_parametrizer.c') diff --git a/source/blender/editors/uvedit/uvedit_parametrizer.c b/source/blender/editors/uvedit/uvedit_parametrizer.c index 105f3a835f3..7150d74c32c 100644 --- a/source/blender/editors/uvedit/uvedit_parametrizer.c +++ b/source/blender/editors/uvedit/uvedit_parametrizer.c @@ -200,7 +200,7 @@ typedef struct PChart { } lscm; struct PChartPack { float rescale, area; - float size[2], trans[2]; + float size[2] /* , trans[2] */; } pack; } u; @@ -1100,7 +1100,7 @@ static PFace *p_face_add(PHandle *handle) } static PFace *p_face_add_construct(PHandle *handle, ParamKey key, ParamKey *vkeys, - float *co[3], float *uv[3], int i1, int i2, int i3, + float *co[4], float *uv[4], int i1, int i2, int i3, ParamBool *pin, ParamBool *select) { PFace *f = p_face_add(handle); @@ -4250,7 +4250,7 @@ static void p_add_ngon(ParamHandle *handle, ParamKey key, int nverts, } void param_face_add(ParamHandle *handle, ParamKey key, int nverts, - ParamKey *vkeys, float **co, float **uv, + ParamKey *vkeys, float *co[4], float *uv[4], ParamBool *pin, ParamBool *select, float normal[3]) { PHandle *phandle = (PHandle *)handle; -- cgit v1.2.3