[Bf-blender-cvs] [4a68bf2078b] master: Subdiv: Cleanup, remove unused code
Sergey Sharybin
noreply at git.blender.org
Mon Jun 22 16:39:28 CEST 2020
Commit: 4a68bf2078b8e03ab321f56f494166579a593170
Author: Sergey Sharybin
Date: Mon Jun 22 16:39:04 2020 +0200
Branches: master
https://developer.blender.org/rB4a68bf2078b8e03ab321f56f494166579a593170
Subdiv: Cleanup, remove unused code
===================================================================
M source/blender/blenkernel/intern/subdiv_ccg.c
===================================================================
diff --git a/source/blender/blenkernel/intern/subdiv_ccg.c b/source/blender/blenkernel/intern/subdiv_ccg.c
index d5d5530c1ce..4d12ea1d54f 100644
--- a/source/blender/blenkernel/intern/subdiv_ccg.c
+++ b/source/blender/blenkernel/intern/subdiv_ccg.c
@@ -1797,11 +1797,7 @@ void BKE_subdiv_ccg_neighbor_coords_get(const SubdivCCG *subdiv_ccg,
int BKE_subdiv_ccg_grid_to_face_index(const SubdivCCG *subdiv_ccg, const int grid_index)
{
- // Subdiv *subdiv = subdiv_ccg->subdiv; /* UNUSED */
- // OpenSubdiv_TopologyRefiner *topology_refiner = subdiv->topology_refiner; /* UNUSED */
- SubdivCCGFace *face = subdiv_ccg->grid_faces[grid_index];
-
- // const int face_grid_index = grid_index - face->start_grid_index; /* UNUSED */
+ const SubdivCCGFace *face = subdiv_ccg->grid_faces[grid_index];
const int face_index = face - subdiv_ccg->faces;
return face_index;
}
More information about the Bf-blender-cvs
mailing list