Fix T58748 Mirror modifier: edges/verts invisible unless face is present
authorClément Foucault <foucault.clem@gmail.com>
Wed, 20 Mar 2019 19:07:12 +0000 (20:07 +0100)
committerClément Foucault <foucault.clem@gmail.com>
Wed, 20 Mar 2019 19:07:22 +0000 (20:07 +0100)
It was due to the mapped mesh not being used if no face was present in the
cage mesh.

source/blender/draw/intern/draw_cache_impl_mesh.c

index 4e06411..89972d0 100644 (file)
@@ -634,8 +634,8 @@ static MeshRenderData *mesh_render_data_create_ex(
                        rdata->mapped.l_origindex = CustomData_get_layer(&me_cage->ldata, CD_ORIGINDEX);
                        rdata->mapped.p_origindex = CustomData_get_layer(&me_cage->pdata, CD_ORIGINDEX);
                        rdata->mapped.supported = (
-                               rdata->mapped.v_origindex &&
-                               rdata->mapped.e_origindex &&
+                               rdata->mapped.v_origindex ||
+                               rdata->mapped.e_origindex ||
                                rdata->mapped.p_origindex);
                }