Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_outliner/outliner_dragdrop.c
| Show First 20 Lines • Show All 862 Lines • ▼ Show 20 Lines | if (changed) { | ||||
| ED_region_tag_redraw_no_rebuild(region); | ED_region_tag_redraw_no_rebuild(region); | ||||
| } | } | ||||
| return true; | return true; | ||||
| } | } | ||||
| static char *datastack_drop_tooltip(bContext *UNUSED(C), | static char *datastack_drop_tooltip(bContext *UNUSED(C), | ||||
| wmDrag *drag, | wmDrag *drag, | ||||
| const wmEvent *UNUSED(event)) | const wmEvent *UNUSED(event), | ||||
| struct wmDropBox *UNUSED(drop)) | |||||
| { | { | ||||
| StackDropData *drop_data = drag->poin; | StackDropData *drop_data = drag->poin; | ||||
| switch (drop_data->drop_action) { | switch (drop_data->drop_action) { | ||||
| case DATA_STACK_DROP_REORDER: | case DATA_STACK_DROP_REORDER: | ||||
| return BLI_strdup(TIP_("Reorder")); | return BLI_strdup(TIP_("Reorder")); | ||||
| break; | break; | ||||
| case DATA_STACK_DROP_COPY: | case DATA_STACK_DROP_COPY: | ||||
| if (drop_data->pchan_parent) { | if (drop_data->pchan_parent) { | ||||
| ▲ Show 20 Lines • Show All 306 Lines • ▼ Show 20 Lines | if (!event->shift && collection_drop_init(C, drag, event, &data)) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| if (changed) { | if (changed) { | ||||
| ED_region_tag_redraw_no_rebuild(region); | ED_region_tag_redraw_no_rebuild(region); | ||||
| } | } | ||||
| return false; | return false; | ||||
| } | } | ||||
| static char *collection_drop_tooltip(bContext *C, wmDrag *drag, const wmEvent *event) | static char *collection_drop_tooltip(bContext *C, | ||||
| wmDrag *drag, | |||||
| const wmEvent *event, | |||||
| wmDropBox *UNUSED(drop)) | |||||
| { | { | ||||
| CollectionDrop data; | CollectionDrop data; | ||||
| if (!event->shift && collection_drop_init(C, drag, event, &data)) { | if (!event->shift && collection_drop_init(C, drag, event, &data)) { | ||||
| TreeElement *te = data.te; | TreeElement *te = data.te; | ||||
| if (!data.from || event->ctrl) { | if (!data.from || event->ctrl) { | ||||
| return BLI_strdup(TIP_("Link inside Collection")); | return BLI_strdup(TIP_("Link inside Collection")); | ||||
| } | } | ||||
| switch (data.insert_type) { | switch (data.insert_type) { | ||||
| ▲ Show 20 Lines • Show All 320 Lines • Show Last 20 Lines | |||||