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

Fix shader editor crash #77467

Merged
merged 1 commit into from
May 26, 2023
Merged

Conversation

bitsawer
Copy link
Member

@bitsawer bitsawer commented May 25, 2023

Fixes an unreported (?) crash when editing shaders and shader includes using the shader editor.

Seems like this small error was introduced by #72277. This PR adds a check to make sure the right type of resource is used, previously it would sometimes crash when handling a ShaderInclude.

Bugsquad edit:

Copy link
Member

@clayjohn clayjohn left a comment

Choose a reason for hiding this comment

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

Looks great! Thank you!

@akien-mga akien-mga merged commit 5de3f5c into godotengine:master May 26, 2023
@akien-mga
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

Editor Crash when pressing "Control + S" with .gdshaderinc open in shader editor
4 participants