Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_outliner/space_outliner.c
| Show First 20 Lines • Show All 157 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| ARegion *ar = CTX_wm_region(C); | ARegion *ar = CTX_wm_region(C); | ||||
| SpaceOops *soops = CTX_wm_space_outliner(C); | SpaceOops *soops = CTX_wm_space_outliner(C); | ||||
| TreeElement *te = NULL; | TreeElement *te = NULL; | ||||
| float fmval[2]; | float fmval[2]; | ||||
| UI_view2d_region_to_view(&ar->v2d, event->mval[0], event->mval[1], &fmval[0], &fmval[1]); | UI_view2d_region_to_view(&ar->v2d, event->mval[0], event->mval[1], &fmval[0], &fmval[1]); | ||||
| if (!ELEM(soops->outlinevis, SO_ALL_SCENES, SO_CUR_SCENE, SO_VISIBLE, SO_GROUPS)) { | if (!ELEM(soops->outlinevis, SO_ALL_SCENES, SO_GROUPS)) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| if (drag->type == WM_DRAG_ID) { | if (drag->type == WM_DRAG_ID) { | ||||
| ID *id = drag->poin; | ID *id = drag->poin; | ||||
| if (GS(id->name) == ID_OB) { | if (GS(id->name) == ID_OB) { | ||||
| if (((Object *)id)->parent) { | if (((Object *)id)->parent) { | ||||
| if ((te = outliner_dropzone_find(soops, fmval, true))) { | if ((te = outliner_dropzone_find(soops, fmval, true))) { | ||||
| ▲ Show 20 Lines • Show All 441 Lines • Show Last 20 Lines | |||||