fix for bad NULL check in bmo_connect_pair, also remove duplicate checks in if statements and redundant initialization vars.

This commit is contained in:
2013-07-13 16:25:47 +00:00
parent 4a39a4a92a
commit b7396654e1
9 changed files with 16 additions and 12 deletions

View File

@@ -2519,7 +2519,7 @@ static void distlimit_evaluate(bConstraint *con, bConstraintOb *cob, ListBase *t
/* only evaluate if there is a target */
if (VALID_CONS_TARGET(ct)) {
float dvec[3], dist = 0.0f, sfac = 1.0f;
float dvec[3], dist, sfac = 1.0f;
short clamp_surf = 0;
/* calculate our current distance from the target */