Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_view3d/drawobject.c
| Context not available. | |||||
| return true; | return true; | ||||
| if (v3d->drawtype == OB_TEXTURE) | if (v3d->drawtype == OB_TEXTURE) | ||||
| return (scene->gm.matmode == GAME_MAT_GLSL && !BKE_scene_use_new_shading_nodes(scene)); | return (!BKE_scene_use_new_shading_nodes(scene)); | ||||
| else if (v3d->drawtype == OB_MATERIAL && dt > OB_SOLID) | else if (v3d->drawtype == OB_MATERIAL && dt > OB_SOLID) | ||||
| return true; | return true; | ||||
| else | else | ||||
| Context not available. | |||||
| else | else | ||||
| dm->drawFacesGLSL(dm, GPU_object_material_bind); | dm->drawFacesGLSL(dm, GPU_object_material_bind); | ||||
| #if 0 /* XXX */ | |||||
| if (BKE_bproperty_object_get(ob, "Text")) | |||||
| draw_mesh_text(ob, 1); | |||||
| #endif | |||||
| GPU_object_material_unbind(); | GPU_object_material_unbind(); | ||||
| glFrontFace(GL_CCW); | glFrontFace(GL_CCW); | ||||
| Context not available. | |||||