You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Fix invalid autocompletion pasting of shader param name
This commit is contained in:
@@ -5419,7 +5419,7 @@ Error ShaderLanguage::complete(const String &p_code, const Map<StringName, Funct
|
|||||||
if (block->parent_function) {
|
if (block->parent_function) {
|
||||||
if (comp_ident) {
|
if (comp_ident) {
|
||||||
for (int i = 0; i < block->parent_function->arguments.size(); i++) {
|
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;
|
skip_function = block->parent_function->name;
|
||||||
|
|||||||
Reference in New Issue
Block a user