summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-10-08 22:52:46 +0200
committerGitHub <noreply@github.com>2019-10-08 22:52:46 +0200
commitbb41f0b0cbc8ceff55a77cec42664c2ee81bb2f2 (patch)
treefcb84ffe6ada4b29313d88dff101aea9be7a1eae
parent2d6b9f5034fba2c1c70ca82364727445dce2aaf6 (diff)
parentada4bcbe3081290b0645d81e2bfbfbab35af2d60 (diff)
Merge pull request #32652 from Chaosus/shader_fix_autocompletion
Fixed invalid autocompletion pasting of shader param name
-rw-r--r--servers/visual/shader_language.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/visual/shader_language.cpp b/servers/visual/shader_language.cpp
index ae99d64eee..5b5ba56ebe 100644
--- a/servers/visual/shader_language.cpp
+++ b/servers/visual/shader_language.cpp
@@ -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;