Merge pull request #59775 from Chaosus/shader_fix_3.x

This commit is contained in:
Yuri Rubinsky 2022-04-01 21:37:47 +03:00 committed by GitHub
commit 385515431b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3626,9 +3626,13 @@ ShaderLanguage::Node *ShaderLanguage::_parse_expression(BlockNode *p_block, cons
}
} else if (tk.type == TK_PERIOD) {
completion_class = TAG_ARRAY;
p_block->block_tag = SubClassTag::TAG_ARRAY;
if (p_block != nullptr) {
p_block->block_tag = SubClassTag::TAG_ARRAY;
}
call_expression = _parse_and_reduce_expression(p_block, p_builtin_types);
p_block->block_tag = SubClassTag::TAG_GLOBAL;
if (p_block != nullptr) {
p_block->block_tag = SubClassTag::TAG_GLOBAL;
}
if (!call_expression) {
return nullptr;
}