Cleanup: replace C-style casts with functional casts for numeric types

Some changes missed from f68cfd6bb0.
This commit is contained in:
2022-09-25 20:27:46 +10:00
parent d35a10134c
commit 21d77a417e
40 changed files with 162 additions and 162 deletions

View File

@@ -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;