Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_outliner/outliner_draw.c
| Show First 20 Lines • Show All 1,782 Lines • ▼ Show 20 Lines | static void outliner_draw_tree( | ||||
| /* set scissor so tree elements or lines can't overlap restriction icons */ | /* set scissor so tree elements or lines can't overlap restriction icons */ | ||||
| GLfloat scissor[4] = {0}; | GLfloat scissor[4] = {0}; | ||||
| if (has_restrict_icons) { | if (has_restrict_icons) { | ||||
| int mask_x = BLI_rcti_size_x(&ar->v2d.mask) - (int)OL_TOGW + 1; | int mask_x = BLI_rcti_size_x(&ar->v2d.mask) - (int)OL_TOGW + 1; | ||||
| CLAMP_MIN(mask_x, 0); | CLAMP_MIN(mask_x, 0); | ||||
| glGetFloatv(GL_SCISSOR_BOX, scissor); | glGetFloatv(GL_SCISSOR_BOX, scissor); | ||||
| glScissor(ar->winrct.xmin, ar->winrct.ymin, mask_x, ar->winy); | glScissor(0, 0, mask_x, ar->winy); | ||||
| } | } | ||||
| // gray hierarchy lines | // gray hierarchy lines | ||||
| starty = (int)ar->v2d.tot.ymax - UI_UNIT_Y / 2 - OL_Y_OFFSET; | starty = (int)ar->v2d.tot.ymax - UI_UNIT_Y / 2 - OL_Y_OFFSET; | ||||
| startx = UI_UNIT_X / 2 - 1.0f; | startx = UI_UNIT_X / 2 - 1.0f; | ||||
| outliner_draw_hierarchy_lines(soops, &soops->tree, startx, &starty); | outliner_draw_hierarchy_lines(soops, &soops->tree, startx, &starty); | ||||
| ▲ Show 20 Lines • Show All 176 Lines • Show Last 20 Lines | |||||