Fix uninitialized normal var w/ objects snapping

This commit is contained in:
Campbell Barton 2015-09-02 01:25:13 +10:00
parent 2fcc38ad54
commit ef931fecc3
1 changed files with 1 additions and 0 deletions

View File

@ -1002,6 +1002,7 @@ static void CalcSnapGeometry(TransInfo *t, float *UNUSED(vec))
BLI_freelistN(&depth_peels);
}
else {
zero_v3(no); /* objects won't set this */
found = snapObjectsTransform(t, mval, &dist_px, loc, no, t->tsnap.modeSelect);
}