Merge pull request #56757 from Chaosus/shader_fix_constant_completion
This commit is contained in:
commit
d13c3c9296
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
for (const KeyValue<StringName, ShaderNode::Varying> &E : shader->varyings) {
|
||||||
matches.insert(E.key, ScriptCodeCompletionOption::KIND_VARIABLE);
|
matches.insert(E.key, ScriptCodeCompletionOption::KIND_VARIABLE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue