[Bf-blender-cvs] [74265fad2b9] refactor-mesh-material-index-generic: Add comment

Hans Goudey noreply at git.blender.org
Sun Aug 28 20:27:49 CEST 2022


Commit: 74265fad2b9a9471f29e77789de9134fcfcd7e30
Author: Hans Goudey
Date:   Sun Aug 28 13:27:43 2022 -0500
Branches: refactor-mesh-material-index-generic
https://developer.blender.org/rB74265fad2b9a9471f29e77789de9134fcfcd7e30

Add comment

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

M	source/blender/blenkernel/BKE_mesh.h

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

diff --git a/source/blender/blenkernel/BKE_mesh.h b/source/blender/blenkernel/BKE_mesh.h
index 8d98ad59eed..70f549a6d23 100644
--- a/source/blender/blenkernel/BKE_mesh.h
+++ b/source/blender/blenkernel/BKE_mesh.h
@@ -1024,6 +1024,7 @@ void BKE_mesh_debug_print(const struct Mesh *me) ATTR_NONNULL(1);
 
 /**
  * \return The material index for each polygon. May be null.
+ * \note In C++ code, prefer using the attribute API (#MutableAttributeAccessor)/
  */
 BLI_INLINE const int *BKE_mesh_material_indices(const Mesh *mesh)
 {
@@ -1032,6 +1033,7 @@ BLI_INLINE const int *BKE_mesh_material_indices(const Mesh *mesh)
 
 /**
  * \return The material index for each polygon. Create the layer if it doesn't exist.
+ * \note In C++ code, prefer using the attribute API (#MutableAttributeAccessor)/
  */
 BLI_INLINE int *BKE_mesh_material_indices_for_write(Mesh *mesh)
 {



More information about the Bf-blender-cvs mailing list