Merge pull request #49456 from Chaosus/fix_shader_length

Fix `length()` array function usage in shader
This commit is contained in:
Yuri Roubinsky 2021-06-10 11:07:59 +03:00 committed by GitHub
commit 9539e4e39e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -447,7 +447,7 @@ public:
virtual DataType get_datatype() const override { return datatype_cache; }
virtual String get_datatype_name() const override { return String(struct_name); }
virtual int get_array_size() const override { return array_size; }
virtual int get_array_size() const override { return (index_expression || call_expression) ? 0 : array_size; }
virtual bool is_indexed() const override { return index_expression != nullptr; }
ArrayNode() :