Subdiv: Cleanup, pass mesh by const pointer

This commit is contained in:
Sergey Sharybin 2019-01-14 11:15:57 +01:00
parent 6c196248be
commit 4347879c43
2 changed files with 2 additions and 2 deletions

View File

@ -193,7 +193,7 @@ Subdiv *BKE_subdiv_new_from_converter(const SubdivSettings *settings,
struct OpenSubdiv_Converter *converter);
Subdiv *BKE_subdiv_new_from_mesh(const SubdivSettings *settings,
struct Mesh *mesh);
const struct Mesh *mesh);
void BKE_subdiv_free(Subdiv *subdiv);

View File

@ -100,7 +100,7 @@ Subdiv *BKE_subdiv_new_from_converter(const SubdivSettings *settings,
}
Subdiv *BKE_subdiv_new_from_mesh(const SubdivSettings *settings,
struct Mesh *mesh)
const Mesh *mesh)
{
if (mesh->totvert == 0) {
return NULL;