You've already forked godot
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:
@@ -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); }
|
||||
|
||||
Reference in New Issue
Block a user