You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fix completion for global constants in shaders
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user