Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_ops.c
| Show First 20 Lines • Show All 1,971 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| if (event->custom != EVT_DATA_DRAGDROP) { | if (event->custom != EVT_DATA_DRAGDROP) { | ||||
| return OPERATOR_CANCELLED | OPERATOR_PASS_THROUGH; | return OPERATOR_CANCELLED | OPERATOR_PASS_THROUGH; | ||||
| } | } | ||||
| const ARegion *region = CTX_wm_region(C); | const ARegion *region = CTX_wm_region(C); | ||||
| uiTreeViewItemHandle *hovered_tree_item = UI_block_tree_view_find_item_at(region, event->xy); | uiTreeViewItemHandle *hovered_tree_item = UI_block_tree_view_find_item_at(region, event->xy); | ||||
| if (!UI_tree_view_item_drop_handle(hovered_tree_item, event->customdata)) { | if (!UI_tree_view_item_drop_handle(C, hovered_tree_item, event->customdata)) { | ||||
| return OPERATOR_CANCELLED | OPERATOR_PASS_THROUGH; | return OPERATOR_CANCELLED | OPERATOR_PASS_THROUGH; | ||||
| } | } | ||||
| return OPERATOR_FINISHED; | return OPERATOR_FINISHED; | ||||
| } | } | ||||
| static void UI_OT_tree_view_drop(wmOperatorType *ot) | static void UI_OT_tree_view_drop(wmOperatorType *ot) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 108 Lines • Show Last 20 Lines | |||||