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:
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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user