Cleanup: quiet discarded-qualifiers, unused warnings
This commit is contained in:
parent
e819f67500
commit
f9f0f44be8
|
@ -1783,11 +1783,11 @@ void BKE_subdiv_ccg_neighbor_coords_get(const SubdivCCG *subdiv_ccg,
|
|||
|
||||
int BKE_subdiv_cgg_grid_to_face_index(const SubdivCCG *subdiv_ccg, const int grid_index)
|
||||
{
|
||||
Subdiv *subdiv = subdiv_ccg->subdiv;
|
||||
OpenSubdiv_TopologyRefiner *topology_refiner = subdiv->topology_refiner;
|
||||
// Subdiv *subdiv = subdiv_ccg->subdiv; /* UNUSED */
|
||||
// OpenSubdiv_TopologyRefiner *topology_refiner = subdiv->topology_refiner; /* UNUSED */
|
||||
SubdivCCGFace *face = subdiv_ccg->grid_faces[grid_index];
|
||||
|
||||
const int face_grid_index = grid_index - face->start_grid_index;
|
||||
// const int face_grid_index = grid_index - face->start_grid_index; /* UNUSED */
|
||||
const int face_index = face - subdiv_ccg->faces;
|
||||
return face_index;
|
||||
}
|
||||
|
|
|
@ -320,7 +320,7 @@ static void voxel_size_edit_draw(const bContext *UNUSED(C), ARegion *UNUSED(ar),
|
|||
pos3d, cd->preview_plane[1], cd->preview_plane[2], cd->preview_plane[0], cd->voxel_size);
|
||||
|
||||
/* Draw text */
|
||||
uiStyle *style = UI_style_get();
|
||||
const uiStyle *style = UI_style_get();
|
||||
const uiFontStyle *fstyle = &style->widget;
|
||||
const int fontid = fstyle->uifont_id;
|
||||
float strwidth, strheight;
|
||||
|
|
|
@ -525,8 +525,8 @@ GPU_PBVH_Buffers *GPU_pbvh_mesh_buffers_build(const int (*face_vert_indices)[3],
|
|||
* \{ */
|
||||
|
||||
static void gpu_pbvh_grid_fill_index_buffers(GPU_PBVH_Buffers *buffers,
|
||||
SubdivCCG *subdiv_ccg,
|
||||
const int *face_sets,
|
||||
SubdivCCG *UNUSED(subdiv_ccg),
|
||||
const int *UNUSED(face_sets),
|
||||
int *grid_indices,
|
||||
uint visible_quad_len,
|
||||
int totgrid,
|
||||
|
|
Loading…
Reference in New Issue