Subdiv: Cleanup, pass mesh by const pointer
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 14 Jan 2019 10:15:57 +0000 (11:15 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 16 Jan 2019 10:00:42 +0000 (11:00 +0100)
source/blender/blenkernel/BKE_subdiv.h
source/blender/blenkernel/intern/subdiv.c

index ab540b8..81d605f 100644 (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);
 
index 2608824..370448d 100644 (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;