-
-
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
Saving a scene unfolds all nodes in all open scene tabs in which it has been instanced #29975
Comments
I encounter this issue quite a lot, it starts to be annoying especially with somewhat deep hierarchy of instanced scenes. I can reproduce this a bit differently but the result is the same eventually, namely:
So the difference is that I don't have to run the scene at all. |
Sooo... this annoyed me a lot recently and I decided to look into fixing this. Node class has a Then there's godot/editor/scene_tree_editor.cpp Lines 202 to 204 in 24e1039
For whatever reason, following the reproduction steps, is_displayed_folded() in the line above will return false, even though set_display_folded() is never called before the folding breaks. I'm lost ;_;
Unless I missed something in the investigation, |
The fact that saving scenes is not deterministic #30538/#23766 which could mess up node indexing #28309 in But it might be not the case because the folding state is saved based on actual node paths: [folding]
node_unfolds=[ ]
resource_unfolds=[ ]
nodes_folded=[ NodePath("node") ]
So yeah, unless you manually save a scene. |
But this would only affect anything if the folding was loaded from the file, which isn't the case here. This code isn't executed between save and tab change: godot/editor/editor_folding.cpp Lines 210 to 212 in 24e1039
|
I don't know if it's OK to revive this issue, but I want to report it's happening again in Godot 4.2.2. I fold nodes, switch a scene, save that scene, then revert to the previous scene, and all nodes are unfolded. |
Please open a new issue, this was fixed 5 years ago. What you experience is a different / new bug. |
Godot version:
3.2-dev 2f63811
OS/device including version:
Windows 10 x64
Issue description:
Upon saving a scene, all open scene tabs that contain it as an instance somewhere in the tree (including within other instances) will have all of its nodes unfolded when switching to their tabs. The folding state isn't actually saved to disk, so you can restore it by closing and re-opening the affected scenes.
Steps to reproduce:
The text was updated successfully, but these errors were encountered: