Fix missiong collection move line in outliner after recent changes

Differential Revision: https://developer.blender.org/D4781
This commit is contained in:
Harley Acheson 2019-05-03 14:19:26 +02:00 committed by Brecht Van Lommel
parent d242ee4af6
commit 66a5df82b5
1 changed files with 6 additions and 2 deletions

View File

@ -2513,11 +2513,15 @@ static void outliner_draw_highlights_recursive(unsigned pos,
if (tselem->flag & TSE_DRAG_BEFORE) {
immUniformColor4fv(col);
immRecti(pos, start_x, start_y + UI_UNIT_Y, end_x, start_y + UI_UNIT_Y);
immRecti(pos,
start_x,
start_y + UI_UNIT_Y - U.pixelsize,
end_x,
start_y + UI_UNIT_Y + U.pixelsize);
}
else if (tselem->flag & TSE_DRAG_AFTER) {
immUniformColor4fv(col);
immRecti(pos, start_x, start_y, end_x, start_y);
immRecti(pos, start_x, start_y - U.pixelsize, end_x, start_y + U.pixelsize);
}
else {
immUniformColor3fvAlpha(col, col[3] * 0.5f);