-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Merge From Scene option invokes two file handling dialogs #36474
Comments
This is a feature introduced by #28292. If no scene is selected, the file dialog is automatically opened (as the only thing you can do in the dialog is to click the Browse button). godot/editor/editor_sub_scene.cpp Lines 74 to 78 in a24aafc
Maybe the title of the file dialog should be changed to something like "Choose a Scene". |
@timothyqiu Hi thank you for your comment, however I don't think we're talking about the same issue? If you follow the reproduction steps you should experience the problem i'm reporting, I know it's a simple thing but I don't see how automatically opening two different dialogs at the same time helps with the I'll update the screenshots as it seems there's a misunderstanding here, but what i'm reporting is clearly a UI / UX bug. |
@timothyqiu Ok, now I have some more time. I was reading on the phone previously so apologies for any inconvenience. Once again thank you for taking the time to review this. After reading the PR I think I understand what you meant now as well. So the file selector dialog a.k.a open a file dialog, was implemented on that PR to occur automatically the first time the This dialog will then appear ON TOP of the node import without further notice, but after selecting a scene, the next time we use the merge from scene option, only the node import will appear and you will have to click on the browse button to prompt this dialog. To me it was confusing when the window opened at first when I was expecting only the node import window, but I understand the reasoning of it happening the first time. With this, I unfortunately think this should still be called out as a UI / UX bug, but perhaps it's something that could be "fixed" through documentation rather than source code regression. Although for the sake of consistency I think the open file dialog should not appear on it's own as it feels it does not respect user choice and could confuse a new user. So should I close this and ask for documentation instead? or do you think this issue can be used to prompt any modification to this behavior? Thanks in advance for your time. |
This doesn't look like a bug. The FileDialog is needed, the second dialog is not FileDialog, it's a separate dialog that displays scene hierarchy. It's impossible/not worth it to merge them. Also the Merge from scene will be probably removed as obsolete after #34892 is merged. |
Godot version:
v3.2.Stable.Official
OS/device including version:
Windows 10 Pro Version 1809 OS Build 17763.973
Issue description:
Using the
Merge From Scene
option from any node, Root, Inherited or Instance will open two distinct file dialogs. One to open a file, and another one to import a file.Video Demo
To me it seems that it should only open "one" window to load a file instead of two. Someone on discord helped me triage and faced the same issue.
I'm not a c++ expert but could it be that the
FILE_IMPORT_SUBSCENE
case is falling through to theFILE_EXTERNAL_OPEN_SCENE
case found here:godot/editor/editor_node.cpp
Line 2319 in a24aafc
Steps to reproduce:
Merge From Scene
context optionMinimal reproduction project:
With the reproduction steps you get a 100% reproduction rate.
Edit: Updated description to take less space and added video showcasing the problem
The text was updated successfully, but these errors were encountered: