Made built-in identifiers properly constant in shaders. Fixes #14449, closes #14629

This commit is contained in:
Juan Linietsky 2017-12-15 18:23:16 -03:00
parent bca97e33ce
commit e946fb8cb0
5 changed files with 166 additions and 86 deletions

View file

@ -161,7 +161,7 @@ void ShaderTextEditor::_load_theme_settings() {
for (const Map<StringName, ShaderLanguage::FunctionInfo>::Element *E = ShaderTypes::get_singleton()->get_functions(VisualServer::ShaderMode(shader->get_mode())).front(); E; E = E->next()) {
for (const Map<StringName, ShaderLanguage::DataType>::Element *F = E->get().built_ins.front(); F; F = F->next()) {
for (const Map<StringName, ShaderLanguage::BuiltInInfo>::Element *F = E->get().built_ins.front(); F; F = F->next()) {
keywords.push_back(F->key());
}
}