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:
authorSergey Sharybin <sergey.vfx@gmail.com>2019-01-15 13:08:33 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2019-01-16 13:00:42 +0300
commit5a794c96850e4023ef10582a7de6128e7b7a1f3b (patch)
tree10450eebb7bf28cf1ac965d7fc86b1c712cb5baf /intern/opensubdiv/internal/opensubdiv_converter_orient_impl.h
parentf36f60543ff8b99066f43a9df9a62b43cc3153c3 (diff)
OpenSubdiv: Use own utility header
Replaces direct access to std.
Diffstat (limited to 'intern/opensubdiv/internal/opensubdiv_converter_orient_impl.h')
-rw-r--r--intern/opensubdiv/internal/opensubdiv_converter_orient_impl.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/intern/opensubdiv/internal/opensubdiv_converter_orient_impl.h b/intern/opensubdiv/internal/opensubdiv_converter_orient_impl.h
index 3125bc600e5..3e946595bba 100644
--- a/intern/opensubdiv/internal/opensubdiv_converter_orient_impl.h
+++ b/intern/opensubdiv/internal/opensubdiv_converter_orient_impl.h
@@ -21,9 +21,9 @@
#include "internal/opensubdiv_converter_orient.h"
-#include <algorithm>
#include <cmath>
-#include <utility>
+
+#include "internal/opensubdiv_util.h"
namespace opensubdiv_capi {
@@ -54,8 +54,8 @@ inline void reverseFaceLoops(
for (int i = 0; i < num_face_vertices / 2; ++i) {
const int j = num_face_vertices - i - 1;
if (i != j) {
- std::swap((*face_vertices)[i], (*face_vertices)[j]);
- std::swap((*face_edges)[i], (*face_edges)[j]);
+ swap((*face_vertices)[i], (*face_vertices)[j]);
+ swap((*face_edges)[i], (*face_edges)[j]);
}
}
reverseFaceVertices(&(*face_vertices)[0], num_face_vertices);