fix for what looks like simple mistake, function wasnt returning any values (compiler warning) and the variable being checked to return a value was never assigned.

This commit is contained in:
Campbell Barton 2008-09-14 17:19:59 +00:00
parent 2eb8eb4e7e
commit 9444b314db

@ -702,9 +702,11 @@ static float visualkey_get_value (ID *id, int blocktype, char *actname, char *co
}
/* as the function hasn't returned yet, try reading from poin */
get_context_ipo_poin(id, blocktype, actname, constname, icu, &vartype);
poin= get_context_ipo_poin(id, blocktype, actname, constname, icu, &vartype);
if (poin)
return read_ipo_poin(poin, vartype);
else
return 0.0;
}