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-26 10:38:25 +0300
committerCampbell Barton <campbell@blender.org>2022-09-26 10:58:36 +0300
commit333e41eac6daf60c6aa9df0496a39c57d74b9c87 (patch)
tree5986e980fd64bc4ef1c3dda125a0f9dca4bab2c8 /intern/mikktspace
parent0210c4df1793799a09a35e44be286dfca88769dc (diff)
Cleanup: replace C-style casts with functional casts for numeric types
Use function style casts in C++ headers & source.
Diffstat (limited to 'intern/mikktspace')
-rw-r--r--intern/mikktspace/mikktspace.hh8
1 files changed, 4 insertions, 4 deletions
diff --git a/intern/mikktspace/mikktspace.hh b/intern/mikktspace/mikktspace.hh
index 93e22658a56..2e5b0b065a8 100644
--- a/intern/mikktspace/mikktspace.hh
+++ b/intern/mikktspace/mikktspace.hh
@@ -151,7 +151,7 @@ template<typename Mesh> class Mikktspace {
void genTangSpace()
{
- nrFaces = (uint)mesh.GetNumFaces();
+ nrFaces = uint(mesh.GetNumFaces());
#ifdef WITH_TBB
nrThreads = tbb::this_task_arena::max_concurrency();
@@ -276,7 +276,7 @@ template<typename Mesh> class Mikktspace {
if (verts != 3 && verts != 4)
continue;
- uint tA = (uint)triangles.size();
+ uint tA = uint(triangles.size());
triangles.emplace_back(f, nrTSpaces);
Triangle &triA = triangles[tA];
@@ -284,7 +284,7 @@ template<typename Mesh> class Mikktspace {
triA.setVertices(0, 1, 2);
}
else {
- uint tB = (uint)triangles.size();
+ uint tB = uint(triangles.size());
triangles.emplace_back(f, nrTSpaces);
Triangle &triB = triangles[tB];
@@ -731,7 +731,7 @@ template<typename Mesh> class Mikktspace {
continue;
}
- const uint newGroupId = (uint)groups.size();
+ const uint newGroupId = uint(groups.size());
triangle.group[i] = newGroupId;
groups.emplace_back(triangle.vertices[i], bool(triangle.orientPreserving));