Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_outliner/outliner_edit.c
| Show First 20 Lines • Show All 943 Lines • ▼ Show 20 Lines | if (TSELEM_OPEN(tselem, soops)) { | ||||
| TreeElement *ten; | TreeElement *ten; | ||||
| for (ten = te->subtree.first; ten; ten = ten->next) { | for (ten = te->subtree.first; ten; ten = ten->next) { | ||||
| outliner_set_coordinates_element_recursive(soops, ten, startx + UI_UNIT_X, starty); | outliner_set_coordinates_element_recursive(soops, ten, startx + UI_UNIT_X, starty); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| /* to retrieve coordinates with redrawing the entire tree */ | /* to retrieve coordinates with redrawing the entire tree */ | ||||
| static void outliner_set_coordinates(ARegion *ar, SpaceOops *soops) | void outliner_set_coordinates(ARegion *ar, SpaceOops *soops) | ||||
| { | { | ||||
| TreeElement *te; | TreeElement *te; | ||||
| int starty = (int)(ar->v2d.tot.ymax) - UI_UNIT_Y; | int starty = (int)(ar->v2d.tot.ymax) - UI_UNIT_Y; | ||||
| for (te = soops->tree.first; te; te = te->next) { | for (te = soops->tree.first; te; te = te->next) { | ||||
| outliner_set_coordinates_element_recursive(soops, te, 0, &starty); | outliner_set_coordinates_element_recursive(soops, te, 0, &starty); | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 1,371 Lines • Show Last 20 Lines | |||||