WIP: UI: Add Drag & Drop Feedback on Windows #107056

Draft
Guillermo Venegas wants to merge 3 commits from guishe/blender:drag-and-drop-update into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Contributor

On Windows, Drag & Drop data can be obtained when the mouse enters in a
window. This data can be used to provide feedback to the user, for example,
if the data contains a file path, it can be displayed if an operation can
be performed on the file on drop.

On Windows, Drag & Drop data can be obtained when the mouse enters in a window. This data can be used to provide feedback to the user, for example, if the data contains a file path, it can be displayed if an operation can be performed on the file on drop.
Author
Contributor

Here is a video showing the patch:

Here is a video showing the patch:
Iliya Katushenock added this to the User Interface project 2023-04-17 23:33:57 +02:00
Iliya Katushenock added the
Interest
Pipeline, Assets & IO
label 2023-04-17 23:34:01 +02:00
Author
Contributor

In my testing, I've found that apps can fail to report drop status to Blender, which can cause unexpected behavior (as seen in the video).

The following works fine:

  • Drag and drop from desktop
  • Drag and drop from the 7Zip file explorer

The file browser does not report the drop if the mouse is moving, and keeps updating the drag state with the same mouse coodinates at the time the drop should have been done.
Performing another drag and drop from the file explorer fixes the issue.

In my testing, I've found that apps can fail to report drop status to Blender, which can cause unexpected behavior (as seen in the video). The following works fine: * Drag and drop from desktop * Drag and drop from the 7Zip file explorer The file browser does not report the drop if the mouse is moving, and keeps updating the drag state with the same mouse coodinates at the time the drop should have been done. Performing another drag and drop from the file explorer fixes the issue.
Guillermo Venegas changed title from UI: Add Drag & Drop Feedback on Windows to WIP: UI: Add Drag & Drop Feedback on Windows 2023-04-18 21:32:19 +02:00
Guillermo Venegas force-pushed drag-and-drop-update from 7db8f39c06 to 5d53c8a2ea 2023-04-18 23:42:16 +02:00 Compare
Guillermo Venegas force-pushed drag-and-drop-update from 5d53c8a2ea to 433e4d8c0e 2023-04-19 04:40:43 +02:00 Compare
Guillermo Venegas force-pushed drag-and-drop-update from 433e4d8c0e to 76d9526aaf 2023-04-22 23:47:47 +02:00 Compare
Guillermo Venegas force-pushed drag-and-drop-update from 76d9526aaf to 7c4d5e08ad 2023-05-02 17:31:44 +02:00 Compare
Guillermo Venegas force-pushed drag-and-drop-update from 7c4d5e08ad to a6b78e0a08 2023-05-02 17:36:51 +02:00 Compare
Author
Contributor

@blender-bot package

@blender-bot package
Member

Only blender organization members with write access can start builds. See documentation for details.

Only blender organization members with write access can start builds. See [documentation](https://projects.blender.org/infrastructure/blender-bot/src/branch/main/README.md) for details.
Guillermo Venegas force-pushed drag-and-drop-update from a6b78e0a08 to a402e5c94d 2023-05-02 17:52:21 +02:00 Compare
This pull request has changes conflicting with the target branch.
  • intern/ghost/intern/GHOST_DropTargetWin32.cc
  • intern/ghost/intern/GHOST_DropTargetX11.cc
  • source/blender/editors/interface/interface_drag.cc
  • source/blender/editors/io/CMakeLists.txt
  • source/blender/editors/io/io_obj.c
  • source/blender/editors/io/io_obj.h
  • source/blender/editors/io/io_ops.c
  • source/blender/editors/screen/screen_ops.c
  • source/blender/editors/space_clip/space_clip.cc
  • source/blender/editors/space_console/space_console.c

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u drag-and-drop-update:guishe-drag-and-drop-update
git checkout guishe-drag-and-drop-update
Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#107056
No description provided.