Fix T93368: Dragging Blends Without Previews
Unfortunately the drop logic for file-path based drag & drop checks the used icon for its logic. This is very bad and should be changed. But doing this involves some changes that are better not done during bcon4, so for now stick to it and update the icon check. Reviewed by: Julian Eisel Differential Revision: https://developer.blender.org/D13383?id=45314
This commit is contained in:
@@ -5778,7 +5778,7 @@ static void keymap_modal_set(wmKeyConfig *keyconf)
|
||||
static bool blend_file_drop_poll(bContext *UNUSED(C), wmDrag *drag, const wmEvent *UNUSED(event))
|
||||
{
|
||||
if (drag->type == WM_DRAG_PATH) {
|
||||
if (drag->icon == ICON_FILE_BLEND) {
|
||||
if (ELEM(drag->icon, ICON_FILE_BLEND, ICON_BLENDER)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user