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

Can not close the shader script, even after deleting the shaders it gets recreated #82518

Closed
Ymanawat opened this issue Sep 29, 2023 · 1 comment

Comments

@Ymanawat
Copy link
Contributor

Godot version

v4.1.1 stable, v4.2.dev (f9004b52f)

System information

Godot v4.2.dev (f9004b52f) - Windows 10.0.22621 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3050

Issue description

There is no option to close a shader script. I did open a shader and then removed it also deleted the script. But I can't close the script as there is no option to close it. When I restart the editor that shader file automatically gets created, An empty file. When we close the editor.
b&w.gdshader below

Screenshot 2023-09-29 143135
Screenshot 2023-09-29 143128

Steps to reproduce

  1. Create a new shader script and then open it.
  2. Detach the shader and close the editor
  3. Delete that shader file from explorer
  4. Open Godot see that shader file still open but blank
  5. Now close the editor and open the same directory file will be there

Minimal reproduction project

Shader file Bug.zip

@bitsawer
Copy link
Member

Thanks for the report. The deleted shader file reappearing issue has been fixed in master by #80705 and related PR's.

You can close shader files in the editor by middle mouse click or selecting "File -> Close File":

close

Closing, as the issue is fixed in current master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants