Differential D16893 Diff 59975 source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines_adjacency.cc
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines_adjacency.cc
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| const int /*elt_index*/, | const int /*elt_index*/, | ||||
| void *_data) | void *_data) | ||||
| { | { | ||||
| MeshExtract_LineAdjacency_Data *data = static_cast<MeshExtract_LineAdjacency_Data *>(_data); | MeshExtract_LineAdjacency_Data *data = static_cast<MeshExtract_LineAdjacency_Data *>(_data); | ||||
| const bool hidden = mr->use_hide && mr->hide_poly && mr->hide_poly[mlt->poly]; | const bool hidden = mr->use_hide && mr->hide_poly && mr->hide_poly[mlt->poly]; | ||||
| if (hidden) { | if (hidden) { | ||||
| return; | return; | ||||
| } | } | ||||
| lines_adjacency_triangle(mr->mloop[mlt->tri[0]].v, | lines_adjacency_triangle(mr->corner_verts[mlt->tri[0]], | ||||
| mr->mloop[mlt->tri[1]].v, | mr->corner_verts[mlt->tri[1]], | ||||
| mr->mloop[mlt->tri[2]].v, | mr->corner_verts[mlt->tri[2]], | ||||
| mlt->tri[0], | mlt->tri[0], | ||||
| mlt->tri[1], | mlt->tri[1], | ||||
| mlt->tri[2], | mlt->tri[2], | ||||
| data); | data); | ||||
| } | } | ||||
| static void extract_lines_adjacency_finish(const MeshRenderData * /*mr*/, | static void extract_lines_adjacency_finish(const MeshRenderData * /*mr*/, | ||||
| MeshBatchCache *cache, | MeshBatchCache *cache, | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||