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:
authorCampbell Barton <campbell@blender.org>2022-09-25 11:33:28 +0300
committerCampbell Barton <campbell@blender.org>2022-09-25 13:17:08 +0300
commitf68cfd6bb078482c4a779a6e26a56e2734edb5b8 (patch)
tree2878e5b80dba5bdeba186d99661d604eb38879cd /source/blender/ikplugin
parentc7b247a118e302a3afc6473797e53b6af28b69e2 (diff)
Cleanup: replace C-style casts with functional casts for numeric types
Diffstat (limited to 'source/blender/ikplugin')
-rw-r--r--source/blender/ikplugin/intern/itasc_plugin.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/ikplugin/intern/itasc_plugin.cpp b/source/blender/ikplugin/intern/itasc_plugin.cpp
index 8e3d4e7686f..a3a3fb3aa94 100644
--- a/source/blender/ikplugin/intern/itasc_plugin.cpp
+++ b/source/blender/ikplugin/intern/itasc_plugin.cpp
@@ -761,7 +761,7 @@ static void copypose_error(const iTaSC::ConstraintValues *values,
for (i = 0, error = 0.0, value = values->values; i < values->number; i++, value++) {
error += KDL::sqr(value->y - value->yd);
}
- iktarget->blenderConstraint->lin_error = (float)KDL::sqrt(error);
+ iktarget->blenderConstraint->lin_error = float(KDL::sqrt(error));
values++;
}
if (iktarget->controlType & iTaSC::CopyPose::CTL_ROTATION) {
@@ -769,7 +769,7 @@ static void copypose_error(const iTaSC::ConstraintValues *values,
for (i = 0, error = 0.0, value = values->values; i < values->number; i++, value++) {
error += KDL::sqr(value->y - value->yd);
}
- iktarget->blenderConstraint->rot_error = (float)KDL::sqrt(error);
+ iktarget->blenderConstraint->rot_error = float(KDL::sqrt(error));
values++;
}
}
@@ -829,7 +829,7 @@ static void distance_error(const iTaSC::ConstraintValues *values,
uint _nvalues,
IK_Target *iktarget)
{
- iktarget->blenderConstraint->lin_error = (float)(values->values[0].y - values->values[0].yd);
+ iktarget->blenderConstraint->lin_error = float(values->values[0].y - values->values[0].yd);
}
static bool joint_callback(const iTaSC::Timestamp &timestamp,