[Bf-blender-cvs] [bf82a15db7d] soc-2021-adaptive-cloth: adaptive_cloth: fix: MeshIO: write obj normals started with 'v ' instead of 'vn '
ishbosamiya
noreply at git.blender.org
Mon Jul 5 17:33:38 CEST 2021
Commit: bf82a15db7daa8352b2e1746e241291453c9d64d
Author: ishbosamiya
Date: Thu Jul 1 18:55:36 2021 +0530
Branches: soc-2021-adaptive-cloth
https://developer.blender.org/rBbf82a15db7daa8352b2e1746e241291453c9d64d
adaptive_cloth: fix: MeshIO: write obj normals started with 'v ' instead of 'vn '
===================================================================
M source/blender/blenkernel/BKE_cloth_remesh.hh
M source/blender/blenkernel/tests/BKE_cloth_remesh_test.cc
===================================================================
diff --git a/source/blender/blenkernel/BKE_cloth_remesh.hh b/source/blender/blenkernel/BKE_cloth_remesh.hh
index b762effc18e..1a803e4933d 100644
--- a/source/blender/blenkernel/BKE_cloth_remesh.hh
+++ b/source/blender/blenkernel/BKE_cloth_remesh.hh
@@ -688,7 +688,7 @@ class MeshIO {
}
for (const auto &normal : this->normals) {
- out << "v " << normal.x << " " << normal.y << " " << normal.z << std::endl;
+ out << "vn " << normal.x << " " << normal.y << " " << normal.z << std::endl;
}
for (const auto &face : this->face_indices) {
diff --git a/source/blender/blenkernel/tests/BKE_cloth_remesh_test.cc b/source/blender/blenkernel/tests/BKE_cloth_remesh_test.cc
index 1d4f1cec76a..55d4dc22dff 100644
--- a/source/blender/blenkernel/tests/BKE_cloth_remesh_test.cc
+++ b/source/blender/blenkernel/tests/BKE_cloth_remesh_test.cc
@@ -122,12 +122,12 @@ TEST(cloth_remesh, MeshIO_WriteObj)
"vt 0.125 0.5\n"
"vt 0.375 0.5\n"
"vt 0.125 0.75\n"
- "v 0 1 0\n"
- "v 0 0 1\n"
- "v -1 0 0\n"
- "v 0 -1 0\n"
- "v 1 0 0\n"
- "v 0 0 -1\n"
+ "vn 0 1 0\n"
+ "vn 0 0 1\n"
+ "vn -1 0 0\n"
+ "vn 0 -1 0\n"
+ "vn 1 0 0\n"
+ "vn 0 0 -1\n"
"f 1/1/1 5/2/1 7/3/1 3/4/1 \n"
"f 4/5/2 3/4/2 7/6/2 8/7/2 \n"
"f 8/8/3 7/9/3 5/10/3 6/11/3 \n"
More information about the Bf-blender-cvs
mailing list