b030acbe9dc3d98c4c5e0103c2b563ea25d8a026
When a user starts a drag'n'drop operation, the originating application dictates the formats carried along with it. In the context of what is broadly supported by Blender, we actively look for "text" and "files" in the data. In that order. This order sometimes leads to a suboptimal choice where, for example, a drag'n'drop of a "file" is interpreted as "text" containing just the path to the file. This PR changes the ordering to prefer the "files" first. Two notable applications where this matters are: - The Firefox download library window - The Perforce P4V client application Dragging and dropping files, like say FBX or OBJ, from these two apps now properly triggers file handler behavior. Existing behavior is best seen in the Blender Text editor. Dragging and dropping a file from the above apps into a Text data block will yield the raw "file:///test.ext" text. This will no longer occur after this PR. Other platforms might have similar concepts but I don't have the capability of checking how they handle this type of situation. They would have to be checked against several applications to see if they have the same issue. Pull Request: https://projects.blender.org/blender/blender/pulls/135939
…
Blender
Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline-modeling, rigging, animation, simulation, rendering, compositing, motion tracking and video editing.
Project Pages
Development
License
Blender as a whole is licensed under the GNU General Public License, Version 3. Individual files may have a different, but compatible license.
See blender.org/about/license for details.
Description
Languages
C++
78%
Python
14.9%
C
2.9%
GLSL
1.9%
CMake
1.2%
Other
0.9%
