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 13:27:46 +0300
committerCampbell Barton <campbell@blender.org>2022-09-25 15:31:31 +0300
commit21d77a417e17ac92bfc10dbd742c867d4019ce69 (patch)
treeec664b5c6ca7882bcc5a1e1ce09cad67b842af9d /source/blender/ikplugin
parentd35a10134cfdbd3e24a56218ef3f05aac2a2fc7e (diff)
Cleanup: replace C-style casts with functional casts for numeric types
Some changes missed from f68cfd6bb078482c4a779a6e26a56e2734edb5b8.
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 a3a3fb3aa94..78fb75ddb40 100644
--- a/source/blender/ikplugin/intern/itasc_plugin.cpp
+++ b/source/blender/ikplugin/intern/itasc_plugin.cpp
@@ -1483,7 +1483,7 @@ static IK_Scene *convert_tree(
}
/* set the weight */
e_matrix &Wq = arm->getWq();
- assert(Wq.cols() == (int)weights.size());
+ assert(Wq.cols() == int(weights.size()));
for (int q = 0; q < Wq.cols(); q++) {
Wq(q, q) = weights[q];
}
@@ -1826,9 +1826,9 @@ static void execute_scene(struct Depsgraph *depsgraph,
}
if (joint->getType() == KDL::Joint::TransY) {
/* stretch bones have a TY joint, compute the scale */
- scale = (float)(q[0] / q_rest[0]);
+ scale = float(q[0] / q_rest[0]);
/* the length is the joint itself */
- length = (float)q[0];
+ length = float(q[0]);
}
else {
scale = 1.0f;