Merge pull request #20158 from Overblob/Fixed_shader_parsing_error_log
Fixed shader parsing error log
This commit is contained in:
commit
1d84c4f870
1 changed files with 5 additions and 3 deletions
|
@ -2545,7 +2545,9 @@ ShaderLanguage::Node *ShaderLanguage::_parse_expression(BlockNode *p_block, cons
|
||||||
TkPos pos = _get_tkpos();
|
TkPos pos = _get_tkpos();
|
||||||
tk = _get_token();
|
tk = _get_token();
|
||||||
|
|
||||||
if (tk.type == TK_PERIOD) {
|
if (tk.type == TK_CURSOR) {
|
||||||
|
//do nothing
|
||||||
|
} else if (tk.type == TK_PERIOD) {
|
||||||
|
|
||||||
StringName identifier;
|
StringName identifier;
|
||||||
if (_get_completable_identifier(p_block, COMPLETION_INDEX, identifier)) {
|
if (_get_completable_identifier(p_block, COMPLETION_INDEX, identifier)) {
|
||||||
|
@ -4130,8 +4132,8 @@ Error ShaderLanguage::complete(const String &p_code, const Map<StringName, Funct
|
||||||
switch (completion_type) {
|
switch (completion_type) {
|
||||||
|
|
||||||
case COMPLETION_NONE: {
|
case COMPLETION_NONE: {
|
||||||
//do none
|
//do nothing
|
||||||
return ERR_PARSE_ERROR;
|
return OK;
|
||||||
} break;
|
} break;
|
||||||
case COMPLETION_RENDER_MODE: {
|
case COMPLETION_RENDER_MODE: {
|
||||||
for (int i = 0; i < p_render_modes.size(); i++) {
|
for (int i = 0; i < p_render_modes.size(); i++) {
|
||||||
|
|
Loading…
Reference in a new issue