Skip to content

Commit

Permalink
Merge pull request #56757 from Chaosus/shader_fix_constant_completion
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaosus authored Jan 13, 2022
2 parents 2dee116 + 4201af6 commit d13c3c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions servers/rendering/shader_language.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9383,6 +9383,9 @@ Error ShaderLanguage::complete(const String &p_code, const ShaderCompileInfo &p_
}
}

for (const KeyValue<StringName, ShaderNode::Constant> &E : shader->constants) {
matches.insert(E.key, ScriptCodeCompletionOption::KIND_CONSTANT);
}
for (const KeyValue<StringName, ShaderNode::Varying> &E : shader->varyings) {
matches.insert(E.key, ScriptCodeCompletionOption::KIND_VARIABLE);
}
Expand Down

0 comments on commit d13c3c9

Please sign in to comment.