diff --git a/source/blender/src/edit.c b/source/blender/src/edit.c index 8d9f1d74c62..c48539ba736 100644 --- a/source/blender/src/edit.c +++ b/source/blender/src/edit.c @@ -1401,7 +1401,8 @@ void snap_to_center() /*calculate the snaplocation (centerpoint) */ count= 0; INIT_MINMAX(min, max); - centroid[0]= centroid[1]= centroid[2]= 0.0; + centroid[0]= centroid[1]= centroid[2]= 0.0f; + snaploc[0]= snaploc[1]= snaploc[2]= 0.0f; if(G.obedit) { tottrans= 0; diff --git a/source/blender/src/editaction.c b/source/blender/src/editaction.c index 1c126751b98..42720dbc7c9 100644 --- a/source/blender/src/editaction.c +++ b/source/blender/src/editaction.c @@ -850,7 +850,7 @@ void transform_actionchannel_keys(int mode, int dummy) bActionChannel *chan; float deltax, startx; float minx, maxx, cenf[2]; - float sval[2], cval[2], lastcval[2]; + float sval[2], cval[2], lastcval[2]={0,0}; float fac=0.0f; int loop=1; int tvtot=0; @@ -1097,7 +1097,7 @@ void transform_meshchannel_keys(char mode, Key *key) TransVert *tv; int /*sel=0,*/ i; short mvals[2], mvalc[2], cent[2]; - float sval[2], cval[2], lastcval[2]; + float sval[2], cval[2], lastcval[2]={0,0}; short cancel=0; float fac=0.0F; int loop=1;