Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphEditor : Create SceneReader, ImageReader or Reference nodes from file drag & drop #5564

Merged
merged 6 commits into from
Nov 28, 2023

Conversation

johnhaddon
Copy link
Member

This allows you to drag and drop files from the OS file browser to the GraphEditor, automatically creating an appropriate node for reading each particular file. I've only tested it on Mac OS so far.

We can't assume that if `dropSignal()` is emitted it was because _we_
accepted `dragEnterSignal()`. Another slot connected to `dragEnterSignal()`
may have accepted it instead, in which case we don't want to do anything in
our `GraphEditor.__drop`, on the assumption that another connection to
`dropSignal()` will be dealing with it.
@johnhaddon johnhaddon self-assigned this Nov 25, 2023
Copy link
Contributor

@murraystevenson murraystevenson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks John! Confirmed working on Linux and Windows. One thought that passed my mind while reviewing was that it might be more descriptive/instructive to permit a drop in the Graph Editor if any of the dragged files are handled and then display an error for the unhandled files, rather than only permitting a drop if all dragged files are handled, but I'm happy to see this merged as is...

@johnhaddon johnhaddon merged commit ae89078 into GafferHQ:1.3_maintenance Nov 28, 2023
4 checks passed
@johnhaddon johnhaddon deleted the dragDrop branch December 6, 2023 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants