Skip to content

Commit

Permalink
Merge pull request #32652 from Chaosus/shader_fix_autocompletion
Browse files Browse the repository at this point in the history
Fixed invalid autocompletion pasting of shader param name
  • Loading branch information
akien-mga authored Oct 8, 2019
2 parents 2d6b9f5 + ada4bcb commit bb41f0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion servers/visual/shader_language.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5419,7 +5419,7 @@ Error ShaderLanguage::complete(const String &p_code, const Map<StringName, Funct
if (block->parent_function) {
if (comp_ident) {
for (int i = 0; i < block->parent_function->arguments.size(); i++) {
matches.insert(block->parent_function->arguments[i].name, ScriptCodeCompletionOption::KIND_FUNCTION);
matches.insert(block->parent_function->arguments[i].name, ScriptCodeCompletionOption::KIND_VARIABLE);
}
}
skip_function = block->parent_function->name;
Expand Down

0 comments on commit bb41f0b

Please sign in to comment.