diff options
author | Brecht Van Lommel <brecht@blender.org> | 2022-08-16 18:58:48 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2022-08-16 19:09:27 +0300 |
commit | 74d716ce23a64ed23b85e9c7a98f153f33dac952 (patch) | |
tree | 0fdc309d17043bfe9af7c73baf1793445391ba3b /source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines.cc | |
parent | fefe229de3a3efe9238c38deec782397f3733290 (diff) |
Fix error/crash in hidden edge drawing after recent changes
Mistake in 2480b55 using the wrong array.
Diffstat (limited to 'source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines.cc')
-rw-r--r-- | source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines.cc b/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines.cc index fe883fb0c96..6d989c3fe03 100644 --- a/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines.cc +++ b/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines.cc @@ -183,10 +183,10 @@ static void extract_lines_loose_geom_subdiv(const DRWSubdivCache *subdiv_cache, switch (mr->extract_type) { case MR_EXTRACT_MESH: { - const bool *hide_vert = mr->hide_vert; - if (hide_vert) { + const bool *hide_edge = mr->hide_edge; + if (hide_edge) { for (DRWSubdivLooseEdge edge : loose_edges) { - *flags_data++ = hide_vert[edge.coarse_edge_index]; + *flags_data++ = hide_edge[edge.coarse_edge_index]; } } else { @@ -202,13 +202,13 @@ static void extract_lines_loose_geom_subdiv(const DRWSubdivCache *subdiv_cache, } } else { - const bool *hide_vert = mr->hide_vert; - if (hide_vert) { + const bool *hide_edge = mr->hide_edge; + if (hide_edge) { for (DRWSubdivLooseEdge edge : loose_edges) { int e = edge.coarse_edge_index; if (mr->e_origindex && mr->e_origindex[e] != ORIGINDEX_NONE) { - *flags_data++ = hide_vert[edge.coarse_edge_index]; + *flags_data++ = hide_edge[edge.coarse_edge_index]; } else { *flags_data++ = false; |