-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
Move active tab and sections to a separate file #15982
Comments
I wrote a quick and dirty Python script to remove the editor state information from scene files: clean_editor_state.py I put this on my project root and run it before every commit. Not the best solution, but it works for now. I hope this issue gets resolved soon though. :) |
This is awesome, thanks! Maybe I could put that in a git hook too. I'll look into it when I get home and update what I figure out. |
In additon to It'd be nice if this information could be saved in a separate file (perhaps something like |
I updated my script, it now removes |
I added elif line.startswith('rect_clip_content = false'):
continue |
Is there any progress on solving this? Ideally this information shouldn't be stored in the project files at all, perhaps |
Based on your script, I wrote the following:
|
See also #20994 |
Fixed by e647342. |
Godot version: 3.0-rc2. Occurs on 3.0-rc1 as well. I imagine it occurs on other versions as well, but these are the only two versions I have ever used.
OS/device including version: Debian Buster, 64-bit
Issue description: The Godot editor modifies my scene (tscn) files, adding and removing
index="0"
from the root node frequently. This indicates which scene tab is open in the editor. Similarly, it modifies the same files with_sections_unfolded =
for any sections I unfold on any node.Why is this an issue? Well, I use version control, obviously. I do modify tscn files, so I must be able to track them. However, on top of those changes are these frequent changes of these two lines. This is either a pain to deal with to prevent committing, or can even lead to unnecessary merge conflicts.
Steps to reproduce:
git diff
. You will see the clutter.Minimal reproduction project: Literally any project with two scenes. Here's one I made, with a .git folder that was clean before I expanded some sections. Running git diff shows the clutter.
godot-issue.zip
The text was updated successfully, but these errors were encountered: