diff options
-rw-r--r-- | source/blender/blenkernel/intern/softbody.c | 13 | ||||
-rw-r--r-- | source/blender/imbuf/intern/scaling.c | 2 | ||||
-rw-r--r-- | source/blender/src/editobject.c | 1 |
3 files changed, 7 insertions, 9 deletions
diff --git a/source/blender/blenkernel/intern/softbody.c b/source/blender/blenkernel/intern/softbody.c index 0186fad5c13..6c343c7c242 100644 --- a/source/blender/blenkernel/intern/softbody.c +++ b/source/blender/blenkernel/intern/softbody.c @@ -2498,7 +2498,7 @@ static void softbody_calc_forces(Object *ob, float forcetime, float timenow, int if(bp->goal < SOFTGOALSNAP){ /* ommit this bp when it snaps */ float auxvect[3]; float velgoal[3]; - float absvel =0, projvel= 0; + /* do goal stuff */ if(ob->softflag & OB_SB_GOAL) { /* true elastic goal */ @@ -2577,7 +2577,6 @@ static void softbody_calc_forces(Object *ob, float forcetime, float timenow, int /* friction in media done */ if(nl_flags & NLF_BUILD){ int ia =3*(sb->totpoint-a); - int op =3*sb->totpoint; /* da/dv = */ nlMatrixAdd(ia,ia,forcetime*kd); @@ -2615,8 +2614,8 @@ static void softbody_calc_forces(Object *ob, float forcetime, float timenow, int } Vec3PlusStVec(bp->force,kd,defforce); if (nl_flags & NLF_BUILD){ - int ia =3*(sb->totpoint-a); - int op =3*sb->totpoint; + // int ia =3*(sb->totpoint-a); + // int op =3*sb->totpoint; //dfdx_goal(ia,ia,op,mpos); // don't do unless you know //dfdv_goal(ia,ia,-cf); @@ -2736,10 +2735,10 @@ static void softbody_apply_fake_implicit_forces(Object *ob, float forcetime, flo float maxerrpos= 0.0f,maxerrvel = 0.0f,maxerrvel2 = 0.0f; int a,fuzzy=0; - forcetime *= sb_time_scale(ob); + forcetime *= sb_time_scale(ob); - aabbmin[0]=aabbmin[1]=aabbmin[2] = 1e20f; - aabbmax[0]=aabbmax[1]=aabbmax[2] = -1e20f; + aabbmin[0]=aabbmin[1]=aabbmin[2] = 1e20f; + aabbmax[0]=aabbmax[1]=aabbmax[2] = -1e20f; /* claim a minimum mass for vertex */ if (sb->nodemass > 0.009999f) timeovermass = forcetime/sb->nodemass; diff --git a/source/blender/imbuf/intern/scaling.c b/source/blender/imbuf/intern/scaling.c index 59a5c310601..80731213140 100644 --- a/source/blender/imbuf/intern/scaling.c +++ b/source/blender/imbuf/intern/scaling.c @@ -923,7 +923,7 @@ static int q_scale_linear_interpolation( if (ibuf->rect) { unsigned char * newrect = MEM_mallocN(newx * newy * sizeof(int), "q_scale rect"); - q_scale_byte(ibuf->rect, newrect, ibuf->x, ibuf->y, + q_scale_byte((unsigned char *)ibuf->rect, newrect, ibuf->x, ibuf->y, newx, newy); imb_freerectImBuf(ibuf); diff --git a/source/blender/src/editobject.c b/source/blender/src/editobject.c index 62b9b4a9978..2c49781274d 100644 --- a/source/blender/src/editobject.c +++ b/source/blender/src/editobject.c @@ -4341,7 +4341,6 @@ void single_ipo_users(int flag) { Object *ob; Base *base; - Ipo *ma, *man; ID *id; base= FIRSTBASE; |