[Bf-blender-cvs] [9904127] master: Code cleanup: use bool instead of int

Sergey Sharybin noreply at git.blender.org
Tue Apr 1 10:00:51 CEST 2014


Commit: 9904127e335769bf376dae70cebee355b88ed5d8
Author: Sergey Sharybin
Date:   Tue Apr 1 13:55:25 2014 +0600
https://developer.blender.org/rB9904127e335769bf376dae70cebee355b88ed5d8

Code cleanup: use bool instead of int

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

M	source/blender/gpu/GPU_buffers.h
M	source/blender/gpu/intern/gpu_buffers.c

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

diff --git a/source/blender/gpu/GPU_buffers.h b/source/blender/gpu/GPU_buffers.h
index d378cec..eca7431 100644
--- a/source/blender/gpu/GPU_buffers.h
+++ b/source/blender/gpu/GPU_buffers.h
@@ -168,7 +168,7 @@ GPU_PBVH_Buffers *GPU_build_pbvh_mesh_buffers(int (*face_vert_indices)[4],
 
 void GPU_update_mesh_pbvh_buffers(GPU_PBVH_Buffers *buffers, MVert *mvert,
                              int *vert_indices, int totvert, const float *vmask,
-                             int (*face_vert_indices)[4], int show_diffuse_color);
+                             int (*face_vert_indices)[4], bool show_diffuse_color);
 
 GPU_PBVH_Buffers *GPU_build_grid_pbvh_buffers(int *grid_indices, int totgrid,
                                     unsigned int **grid_hidden, int gridsize);
diff --git a/source/blender/gpu/intern/gpu_buffers.c b/source/blender/gpu/intern/gpu_buffers.c
index 7902d09..9559a75 100644
--- a/source/blender/gpu/intern/gpu_buffers.c
+++ b/source/blender/gpu/intern/gpu_buffers.c
@@ -1436,7 +1436,7 @@ static void gpu_color_from_mask_quad_set(const CCGKey *key,
 
 void GPU_update_mesh_pbvh_buffers(GPU_PBVH_Buffers *buffers, MVert *mvert,
                              int *vert_indices, int totvert, const float *vmask,
-                             int (*face_vert_indices)[4], int show_diffuse_color)
+                             int (*face_vert_indices)[4], bool show_diffuse_color)
 {
 	VertexBufferFormat *vert_data;
 	int i, j, k;




More information about the Bf-blender-cvs mailing list