1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-13 13:31:48 +00:00

Fix shader crash when using local var with the same name as varying

This commit is contained in:
Yuri Roubinsky
2021-08-13 08:12:04 +03:00
parent 1a9c8aaba9
commit fa96c98bdf
3 changed files with 9 additions and 2 deletions

View File

@@ -409,6 +409,7 @@ public:
StringName name;
StringName struct_name;
bool is_const = false;
bool is_local = false;
virtual DataType get_datatype() const override { return datatype_cache; }
virtual String get_datatype_name() const override { return String(struct_name); }
@@ -444,6 +445,7 @@ public:
Node *assign_expression = nullptr;
bool is_const = false;
int array_size = 0;
bool is_local = false;
virtual DataType get_datatype() const override { return datatype_cache; }
virtual String get_datatype_name() const override { return String(struct_name); }