[Bf-blender-cvs] [04cec203e3c] soc-2021-adaptive-cloth: adaptive_cloth: BKE_cloth_remesh() add to namespace blender::bke
ishbosamiya
noreply at git.blender.org
Mon Jul 19 17:35:44 CEST 2021
Commit: 04cec203e3c04d9594f964c497f8097021c94bff
Author: ishbosamiya
Date: Fri Jul 16 21:54:44 2021 +0530
Branches: soc-2021-adaptive-cloth
https://developer.blender.org/rB04cec203e3c04d9594f964c497f8097021c94bff
adaptive_cloth: BKE_cloth_remesh() add to namespace blender::bke
===================================================================
M source/blender/blenkernel/BKE_cloth_remesh.hh
M source/blender/blenkernel/intern/cloth_remesh.cc
===================================================================
diff --git a/source/blender/blenkernel/BKE_cloth_remesh.hh b/source/blender/blenkernel/BKE_cloth_remesh.hh
index 2beed8da79f..8dae55e09dc 100644
--- a/source/blender/blenkernel/BKE_cloth_remesh.hh
+++ b/source/blender/blenkernel/BKE_cloth_remesh.hh
@@ -44,17 +44,19 @@
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
+struct ClothModifierData;
+struct Object;
+
#ifdef __cplusplus
+namespace blender::bke {
extern "C" {
#endif
-struct ClothModifierData;
-struct Object;
-
Mesh *BKE_cloth_remesh(struct Object *ob, struct ClothModifierData *clmd, struct Mesh *mesh);
#ifdef __cplusplus
}
+} /* namespace blender::bke */
#endif
#ifdef __cplusplus
diff --git a/source/blender/blenkernel/intern/cloth_remesh.cc b/source/blender/blenkernel/intern/cloth_remesh.cc
index 28d8df32004..fc8fdcd7f70 100644
--- a/source/blender/blenkernel/intern/cloth_remesh.cc
+++ b/source/blender/blenkernel/intern/cloth_remesh.cc
@@ -32,7 +32,7 @@
#include <cstdio>
-using namespace blender::bke;
+namespace blender::bke {
Mesh *BKE_cloth_remesh(Object *ob, ClothModifierData *clmd, Mesh *mesh)
{
@@ -45,3 +45,5 @@ Mesh *BKE_cloth_remesh(Object *ob, ClothModifierData *clmd, Mesh *mesh)
return meshio.write();
}
+
+} // namespace blender::bke
More information about the Bf-blender-cvs
mailing list