Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/blenkernel/intern/anim_sys.c')
-rw-r--r--source/blender/blenkernel/intern/anim_sys.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/anim_sys.c b/source/blender/blenkernel/intern/anim_sys.c
index 0476fd1e244..ea41495d097 100644
--- a/source/blender/blenkernel/intern/anim_sys.c
+++ b/source/blender/blenkernel/intern/anim_sys.c
@@ -1189,7 +1189,7 @@ static void nlaeval_free(NlaEvalData *nlaeval)
/* ---------------------- */
-static int nlaevalchan_validate_index(NlaEvalChannel *nec, int index)
+static int nlaevalchan_validate_index(const NlaEvalChannel *nec, int index)
{
if (nec->is_array) {
if (index >= 0 && index < nec->base_snapshot.length) {
@@ -1494,7 +1494,7 @@ static bool nla_invert_blend_value(
int blend_mode, float old_value, float target_value, float influence, float *r_value)
{
/** No solution if strip had 0 influence. */
- if (IS_EQF(0, influence)) {
+ if (IS_EQF(influence, 0.0f)) {
return false;
}
@@ -1542,7 +1542,7 @@ static bool nla_invert_combine_value(int mix_mode,
float *r_value)
{
/* No solution if strip had no influence. */
- if (IS_EQF(influence, 0)) {
+ if (IS_EQF(influence, 0.0f)) {
return false;
}
@@ -1597,7 +1597,7 @@ static bool nla_invert_combine_quaternion(const float old_values[4],
float influence,
float result[4])
{
- if (IS_EQF(influence, 0)) {
+ if (IS_EQF(influence, 0.0f)) {
return false;
}
float tmp_old[4], tmp_new[4];