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

Ignore path error for built-in scripts/shaders #84077

Merged

Conversation

KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented Oct 27, 2023

Fixes #84071
Regression from #78744

ShaderCreateDialog does not validate path when using built-in shader. While it's correct, if the path was invalid before enabling the checkbox, it will be considered invalid for built-in scripts and fail. This PR makes the error ignored if shader is built-in (I could clear the error instead, but ignoring it is safer).

ScriptCreateDialog has the same problem, but it assigns a path based on node name, so it wasn't visible. Meantime shader uses scene name, which can be empty.

@KoBeWi KoBeWi added this to the 4.2 milestone Oct 27, 2023
@KoBeWi KoBeWi requested a review from a team as a code owner October 27, 2023 19:54
@akien-mga akien-mga merged commit ba1bd6f into godotengine:master Oct 28, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

@KoBeWi KoBeWi deleted the this_path_is_valid_change_my_mind branch October 28, 2023 11:01
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.

Cannot create new Shader on ShaderMaterial
2 participants