Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_view3d/view3d_view.c
| Context not available. | |||||
| short dtx; | short dtx; | ||||
| if (vc->obedit && vc->obedit->type == OB_MBALL) { | if (vc->obedit && vc->obedit->type == OB_MBALL) { | ||||
| draw_object(scene, ar, v3d, BASACT, DRAW_PICKING | DRAW_CONSTCOLOR); | draw_object(scene, ar, v3d, BASACT, DRAW_PICKING | DRAW_CONSTCOLOR, NULL); | ||||
| } | } | ||||
| else if ((vc->obedit && vc->obedit->type == OB_ARMATURE)) { | else if ((vc->obedit && vc->obedit->type == OB_ARMATURE)) { | ||||
| /* if not drawing sketch, draw bones */ | /* if not drawing sketch, draw bones */ | ||||
| if (!BDR_drawSketchNames(vc)) { | if (!BDR_drawSketchNames(vc)) { | ||||
| draw_object(scene, ar, v3d, BASACT, DRAW_PICKING | DRAW_CONSTCOLOR); | draw_object(scene, ar, v3d, BASACT, DRAW_PICKING | DRAW_CONSTCOLOR, NULL); | ||||
| } | } | ||||
| } | } | ||||
| else { | else { | ||||
| Context not available. | |||||
| base->selcol = code; | base->selcol = code; | ||||
| if (GPU_select_load_id(code)) { | if (GPU_select_load_id(code)) { | ||||
| draw_object(scene, ar, v3d, base, DRAW_PICKING | DRAW_CONSTCOLOR); | draw_object(scene, ar, v3d, base, DRAW_PICKING | DRAW_CONSTCOLOR, NULL); | ||||
| /* we draw duplicators for selection too */ | /* we draw duplicators for selection too */ | ||||
| if ((base->object->transflag & OB_DUPLI)) { | if ((base->object->transflag & OB_DUPLI)) { | ||||
| Context not available. | |||||
| dt = tbase.object->dt; tbase.object->dt = MIN2(tbase.object->dt, base->object->dt); | dt = tbase.object->dt; tbase.object->dt = MIN2(tbase.object->dt, base->object->dt); | ||||
| dtx = tbase.object->dtx; tbase.object->dtx = base->object->dtx; | dtx = tbase.object->dtx; tbase.object->dtx = base->object->dtx; | ||||
| draw_object(scene, ar, v3d, &tbase, DRAW_PICKING | DRAW_CONSTCOLOR); | draw_object(scene, ar, v3d, &tbase, DRAW_PICKING | DRAW_CONSTCOLOR, NULL); | ||||
| tbase.object->dt = dt; | tbase.object->dt = dt; | ||||
| tbase.object->dtx = dtx; | tbase.object->dtx = dtx; | ||||
| Context not available. | |||||