Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_view3d/drawobject.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 9,211 Lines • ▼ Show 20 Lines | if (dflag == 0 && (v3d->flag & V3D_HIDE_HELPLINES) == 0 && !render_override) { | ||||
| immUniformColor3ubv(ob_wire_col); | immUniformColor3ubv(ob_wire_col); | ||||
| /* draw hook center and offset line */ | /* draw hook center and offset line */ | ||||
| if (ob != scene->obedit) | if (ob != scene->obedit) | ||||
| draw_hooks(ob, pos); | draw_hooks(ob, pos); | ||||
| /* help lines and so */ | /* help lines and so */ | ||||
| if (ob != scene->obedit && ob->parent) { | if (ob != scene->obedit && ob->parent) { | ||||
| if ((ob->parent->base_flag & BASE_VISIBLED) != 0) { | if (BKE_object_is_visible(ob->parent)) { | ||||
| setlinestyle(3); | setlinestyle(3); | ||||
| immBegin(GWN_PRIM_LINES, 2); | immBegin(GWN_PRIM_LINES, 2); | ||||
| immVertex3fv(pos, ob->obmat[3]); | immVertex3fv(pos, ob->obmat[3]); | ||||
| immVertex3fv(pos, ob->orig); | immVertex3fv(pos, ob->orig); | ||||
| immEnd(); | immEnd(); | ||||
| setlinestyle(0); | setlinestyle(0); | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 787 Lines • Show Last 20 Lines | |||||