[Bf-blender-cvs] [79bfd631f12] refactor-mesh-material-index-generic: Fix build error

Hans Goudey noreply at git.blender.org
Sat Aug 27 07:05:23 CEST 2022


Commit: 79bfd631f12a3f1ccf2767ee3ff0994bd59e02c9
Author: Hans Goudey
Date:   Fri Aug 26 23:56:50 2022 -0500
Branches: refactor-mesh-material-index-generic
https://developer.blender.org/rB79bfd631f12a3f1ccf2767ee3ff0994bd59e02c9

Fix build error

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

M	source/blender/makesrna/intern/rna_mesh.c

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

diff --git a/source/blender/makesrna/intern/rna_mesh.c b/source/blender/makesrna/intern/rna_mesh.c
index 93bb652732e..20c13b6bcdd 100644
--- a/source/blender/makesrna/intern/rna_mesh.c
+++ b/source/blender/makesrna/intern/rna_mesh.c
@@ -562,7 +562,7 @@ static void rna_MeshPolygon_hide_set(PointerRNA *ptr, bool value)
   hide_poly[index] = value;
 }
 
-static bool rna_MeshPolygon_material_index_get(PointerRNA *ptr)
+static int rna_MeshPolygon_material_index_get(PointerRNA *ptr)
 {
   const Mesh *mesh = rna_mesh(ptr);
   const int *material_indices = BKE_mesh_material_indices(mesh);



More information about the Bf-blender-cvs mailing list