Subdiv: Cleanup, pass mesh by const pointer
This commit is contained in:
parent
6c196248be
commit
4347879c43
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue