Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/modes/edit_mesh_mode.c
| Show First 20 Lines • Show All 588 Lines • ▼ Show 20 Lines | if ((ob == draw_ctx->object_edit) || BKE_object_is_in_editmode(ob)) { | ||||
| face_mod = (do_occlude_wire) ? 0.0f : 1.0f; | face_mod = (do_occlude_wire) ? 0.0f : 1.0f; | ||||
| if (!stl->g_data->do_faces) { | if (!stl->g_data->do_faces) { | ||||
| face_mod = 0.0f; | face_mod = 0.0f; | ||||
| } | } | ||||
| if (do_show_weight) { | if (do_show_weight) { | ||||
| geom = DRW_cache_mesh_surface_weights_get(ob); | geom = DRW_cache_mesh_surface_weights_get(ob, tsettings, false); | ||||
| DRW_shgroup_call_add(stl->g_data->fvcolor_shgrp, geom, ob->obmat); | DRW_shgroup_call_add(stl->g_data->fvcolor_shgrp, geom, ob->obmat); | ||||
| } | } | ||||
| if (do_occlude_wire) { | if (do_occlude_wire) { | ||||
| geom = DRW_cache_mesh_surface_get(ob); | geom = DRW_cache_mesh_surface_get(ob); | ||||
| DRW_shgroup_call_add(stl->g_data->depth_shgrp_hidden_wire, geom, ob->obmat); | DRW_shgroup_call_add(stl->g_data->depth_shgrp_hidden_wire, geom, ob->obmat); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 148 Lines • Show Last 20 Lines | |||||