From 77794b1a7b99bd689d1d9872c61d7990fbad2ce4 Mon Sep 17 00:00:00 2001 From: Sebastian Parborg Date: Thu, 28 Apr 2022 12:50:22 +0200 Subject: VSE: Add precise drag and drop and strip previews This patch adds the drag and drop strip previews in the VSE. It also adds two new functions to the drag and drop API. 1. "draw_in_view" for callbacks that wants to draw elements in local viewport coordinates 2. "on_drag_start" that can be used for prefetching data only once at the start of the drag. Reviewed By: Julian, Campbell Differential Revision: http://developer.blender.org/D14560 --- source/blender/editors/space_node/space_node.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/editors/space_node') diff --git a/source/blender/editors/space_node/space_node.cc b/source/blender/editors/space_node/space_node.cc index 82b850653be..34f357ae5c3 100644 --- a/source/blender/editors/space_node/space_node.cc +++ b/source/blender/editors/space_node/space_node.cc @@ -636,21 +636,21 @@ static bool node_mask_drop_poll(bContext *UNUSED(C), wmDrag *drag, const wmEvent return WM_drag_is_ID_type(drag, ID_MSK); } -static void node_group_drop_copy(wmDrag *drag, wmDropBox *drop) +static void node_group_drop_copy(bContext *UNUSED(C), wmDrag *drag, wmDropBox *drop) { ID *id = WM_drag_get_local_ID_or_import_from_asset(drag, 0); RNA_string_set(drop->ptr, "name", id->name + 2); } -static void node_id_drop_copy(wmDrag *drag, wmDropBox *drop) +static void node_id_drop_copy(bContext *UNUSED(C), wmDrag *drag, wmDropBox *drop) { ID *id = WM_drag_get_local_ID_or_import_from_asset(drag, 0); RNA_int_set(drop->ptr, "session_uuid", (int)id->session_uuid); } -static void node_id_path_drop_copy(wmDrag *drag, wmDropBox *drop) +static void node_id_path_drop_copy(bContext *UNUSED(C), wmDrag *drag, wmDropBox *drop) { ID *id = WM_drag_get_local_ID_or_import_from_asset(drag, 0); -- cgit v1.2.3