[Bf-blender-cvs] [5ba5678e004] master: Cleanup: Use forward declaration of struct in header

Hans Goudey noreply at git.blender.org
Fri Jan 7 19:42:11 CET 2022


Commit: 5ba5678e0041c960a50ee05a1bf28d6c7b396162
Author: Hans Goudey
Date:   Fri Jan 7 12:42:04 2022 -0600
Branches: master
https://developer.blender.org/rB5ba5678e0041c960a50ee05a1bf28d6c7b396162

Cleanup: Use forward declaration of struct in header

This meant that BKE_mesh.h couldn't be used without
the DNA headers first.

===================================================================

M	source/blender/blenkernel/BKE_mesh.h

===================================================================

diff --git a/source/blender/blenkernel/BKE_mesh.h b/source/blender/blenkernel/BKE_mesh.h
index dc9d0e9452a..5f3fcb535b2 100644
--- a/source/blender/blenkernel/BKE_mesh.h
+++ b/source/blender/blenkernel/BKE_mesh.h
@@ -951,7 +951,7 @@ void BKE_mesh_calc_edges_tessface(struct Mesh *mesh);
 
 /* In DerivedMesh.cc */
 void BKE_mesh_wrapper_deferred_finalize(struct Mesh *me_eval,
-                                        const CustomData_MeshMasks *cd_mask_finalize);
+                                        const struct CustomData_MeshMasks *cd_mask_finalize);
 
 /* **** Depsgraph evaluation **** */



More information about the Bf-blender-cvs mailing list