From e946fb8cb0a9177c45db5305a26efa52ea8e7907 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Fri, 15 Dec 2017 18:23:16 -0300 Subject: Made built-in identifiers properly constant in shaders. Fixes #14449, closes #14629 --- editor/plugins/shader_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor/plugins/shader_editor_plugin.cpp') diff --git a/editor/plugins/shader_editor_plugin.cpp b/editor/plugins/shader_editor_plugin.cpp index b390070b4a..bd6efee2db 100644 --- a/editor/plugins/shader_editor_plugin.cpp +++ b/editor/plugins/shader_editor_plugin.cpp @@ -161,7 +161,7 @@ void ShaderTextEditor::_load_theme_settings() { for (const Map::Element *E = ShaderTypes::get_singleton()->get_functions(VisualServer::ShaderMode(shader->get_mode())).front(); E; E = E->next()) { - for (const Map::Element *F = E->get().built_ins.front(); F; F = F->next()) { + for (const Map::Element *F = E->get().built_ins.front(); F; F = F->next()) { keywords.push_back(F->key()); } } -- cgit v1.2.3