-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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 empty script interface crash on tscn load. #23495 #23535
Fix empty script interface crash on tscn load. #23495 #23535
Conversation
Well the initiating cause should of course be fixed. As for the For |
I think you can name a function anything as a node, so it would be good if has_function didn't crash. However I can think of a case when a function is deprecated, not sure what happens then. |
Would it crash though? If input validation needs to be done on function naming, it should be done further up when users actually define the name IMO. |
I think my problem is that functions becomes null but that's not solved by the fails check. Functions being null is when scripts is null. |
Add fail conditions to protect the visual script function and also fix the initiating cause.
9040eaf
to
ef78181
Compare
Removed has_function. |
Thanks! |
Add fail conditions to protect the visual script functions and also fix the initiating cause.
@akien-mga Do you prefer if I fix the initiating cause, add the ERR_FAILs or both?
Bugsquad edit: Fixes #23495.