From 322a6144972a855b18ed80a3cdb45c44d036663f Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Tue, 8 Jun 2021 12:02:43 +0200 Subject: Cleanup: replace typedef structs with structs. --- .../draw/intern/mesh_extractors/extract_mesh_ibo_lines_adjacency.cc | 4 ++-- .../draw/intern/mesh_extractors/extract_mesh_ibo_lines_paint_mask.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'source/blender/draw/intern/mesh_extractors') diff --git a/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines_adjacency.cc b/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines_adjacency.cc index 570ea46ce8d..127d18bb62d 100644 --- a/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines_adjacency.cc +++ b/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines_adjacency.cc @@ -36,13 +36,13 @@ namespace blender::draw { #define NO_EDGE INT_MAX -typedef struct MeshExtract_LineAdjacency_Data { +struct MeshExtract_LineAdjacency_Data { GPUIndexBufBuilder elb; EdgeHash *eh; bool is_manifold; /* Array to convert vert index to any loop index of this vert. */ uint vert_to_loop[0]; -} MeshExtract_LineAdjacency_Data; +}; static void *extract_lines_adjacency_init(const MeshRenderData *mr, struct MeshBatchCache *UNUSED(cache), diff --git a/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines_paint_mask.cc b/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines_paint_mask.cc index 95d355e0437..6bbd0188f65 100644 --- a/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines_paint_mask.cc +++ b/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines_paint_mask.cc @@ -34,11 +34,11 @@ namespace blender::draw { /** \name Extract Paint Mask Line Indices * \{ */ -typedef struct MeshExtract_LinePaintMask_Data { +struct MeshExtract_LinePaintMask_Data { GPUIndexBufBuilder elb; /** One bit per edge set if face is selected. */ BLI_bitmap select_map[0]; -} MeshExtract_LinePaintMask_Data; +}; static void *extract_lines_paint_mask_init(const MeshRenderData *mr, struct MeshBatchCache *UNUSED(cache), -- cgit v1.2.3