Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_view3d/drawobject.c
| Show First 20 Lines • Show All 122 Lines • ▼ Show 20 Lines | Mesh *me = ob->data; | ||||
| Mesh *me_eval = BKE_object_get_evaluated_mesh(ob_eval); | Mesh *me_eval = BKE_object_get_evaluated_mesh(ob_eval); | ||||
| if (me_eval != NULL) { | if (me_eval != NULL) { | ||||
| me = me_eval; | me = me_eval; | ||||
| } | } | ||||
| } | } | ||||
| GPU_front_facing(ob->transflag & OB_NEG_SCALE); | GPU_front_facing(ob->transflag & OB_NEG_SCALE); | ||||
| /* Just to create the data to pass to immediate mode, grr! */ | /* Just to create the data to pass to immediate mode! (sigh) */ | ||||
| const int *facemap_data = CustomData_get_layer(&me->pdata, CD_FACEMAP); | const int *facemap_data = CustomData_get_layer(&me->pdata, CD_FACEMAP); | ||||
| if (facemap_data) { | if (facemap_data) { | ||||
| GPU_blend(GPU_BLEND_ALPHA); | GPU_blend(GPU_BLEND_ALPHA); | ||||
| const MVert *mvert = me->mvert; | const MVert *mvert = me->mvert; | ||||
| const MPoly *mpoly = me->mpoly; | const MPoly *mpoly = me->mpoly; | ||||
| const MLoop *mloop = me->mloop; | const MLoop *mloop = me->mloop; | ||||
| ▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines | |||||