1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-18 14:21:41 +00:00

Allow using vertex varying in custom functions under any circumstances

This commit is contained in:
Yuri Roubinsky
2021-07-22 11:09:53 +03:00
parent a4c863791e
commit 94a7b04a01
2 changed files with 37 additions and 2 deletions

View File

@@ -876,6 +876,14 @@ private:
VaryingFunctionNames varying_function_names;
struct VaryingUsage {
ShaderNode::Varying *var;
int line;
};
List<VaryingUsage> unknown_varying_usages;
bool _check_varying_usages(int *r_error_line, String *r_error_message) const;
TkPos _get_tkpos() {
TkPos tkp;
tkp.char_idx = char_idx;