Fix `length()` array function usage in shader
This commit is contained in:
parent
f178e7abd7
commit
7dd65a066e
|
@ -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() :
|
||||
|
|
Loading…
Reference in New Issue