[Bf-blender-cvs] [0d089ce8812] master: OpenSubdiv: Refactor, move edge map to base folder

Sergey Sharybin noreply at git.blender.org
Wed May 27 12:22:26 CEST 2020


Commit: 0d089ce88121f4bbdd93e9fd899d69ac7fba7a2a
Author: Sergey Sharybin
Date:   Tue May 19 10:20:11 2020 +0200
Branches: master
https://developer.blender.org/rB0d089ce88121f4bbdd93e9fd899d69ac7fba7a2a

OpenSubdiv: Refactor, move edge map to base folder

===================================================================

M	intern/opensubdiv/CMakeLists.txt
R097	intern/opensubdiv/internal/opensubdiv_edge_map.h	intern/opensubdiv/internal/base/edge_map.h
M	intern/opensubdiv/internal/topology/topology_refiner_capi.cc

===================================================================

diff --git a/intern/opensubdiv/CMakeLists.txt b/intern/opensubdiv/CMakeLists.txt
index f4bfaf52df1..6c8275b5b60 100644
--- a/intern/opensubdiv/CMakeLists.txt
+++ b/intern/opensubdiv/CMakeLists.txt
@@ -51,6 +51,7 @@ if(WITH_OPENSUBDIV)
 
   list(APPEND SRC
     # Base.
+    internal/base/edge_map.h
     internal/base/memory.h
 
     # Device.
@@ -78,7 +79,6 @@ if(WITH_OPENSUBDIV)
     internal/opensubdiv_util.cc
 
     internal/opensubdiv_converter_internal.h
-    internal/opensubdiv_edge_map.h
     internal/opensubdiv_evaluator_internal.h
     internal/opensubdiv_internal.h
     internal/opensubdiv_util.h
diff --git a/intern/opensubdiv/internal/opensubdiv_edge_map.h b/intern/opensubdiv/internal/base/edge_map.h
similarity index 97%
rename from intern/opensubdiv/internal/opensubdiv_edge_map.h
rename to intern/opensubdiv/internal/base/edge_map.h
index 454068b58a4..eb70af2354c 100644
--- a/intern/opensubdiv/internal/opensubdiv_edge_map.h
+++ b/intern/opensubdiv/internal/base/edge_map.h
@@ -16,8 +16,8 @@
 //
 // Author: Sergey Sharybin
 
-#ifndef OPENSUBDIV_EDGE_MAP_H_
-#define OPENSUBDIV_EDGE_MAP_H_
+#ifndef OPENSUBDIV_BASE_EDGE_MAP_H_
+#define OPENSUBDIV_BASE_EDGE_MAP_H_
 
 #include "internal/opensubdiv_util.h"
 
@@ -159,4 +159,4 @@ template<> struct hash<blender::opensubdiv::EdgeKey> {
 
 }  // namespace std
 
-#endif  // OPENSUBDIV_EDGE_MAP_H_
+#endif  // OPENSUBDIV_BASE_EDGE_MAP_H_
diff --git a/intern/opensubdiv/internal/topology/topology_refiner_capi.cc b/intern/opensubdiv/internal/topology/topology_refiner_capi.cc
index 56d90b84632..36a6ed16b16 100644
--- a/intern/opensubdiv/internal/topology/topology_refiner_capi.cc
+++ b/intern/opensubdiv/internal/topology/topology_refiner_capi.cc
@@ -19,8 +19,8 @@
 #include "opensubdiv_topology_refiner_capi.h"
 
 #include "MEM_guardedalloc.h"
+#include "internal/base/edge_map.h"
 #include "internal/opensubdiv_converter_internal.h"
-#include "internal/opensubdiv_edge_map.h"
 #include "internal/opensubdiv_internal.h"
 #include "internal/opensubdiv_util.h"
 #include "internal/topology/topology_refiner_impl.h"



More information about the Bf-blender-cvs mailing list