diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-01-15 13:08:33 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-01-16 13:00:42 +0300 |
commit | 5a794c96850e4023ef10582a7de6128e7b7a1f3b (patch) | |
tree | 10450eebb7bf28cf1ac965d7fc86b1c712cb5baf /intern/opensubdiv/internal/opensubdiv_converter_orient_impl.h | |
parent | f36f60543ff8b99066f43a9df9a62b43cc3153c3 (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.h | 8 |
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); |