Fix `length()` array function usage in shader

This commit is contained in:
Yuri Roubinsky 2021-06-09 13:12:55 +03:00
parent f178e7abd7
commit 7dd65a066e
1 changed files with 1 additions and 1 deletions

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() :