From ac4e6f00414a88536c7db03c947b0b325bca0288 Mon Sep 17 00:00:00 2001 From: Yuri Roubinski Date: Sun, 25 Aug 2019 13:06:16 +0300 Subject: [PATCH] Fix _get_description param name (visual shaders) --- editor/plugins/visual_shader_editor_plugin.cpp | 8 ++++---- editor/plugins/visual_shader_editor_plugin.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/editor/plugins/visual_shader_editor_plugin.cpp b/editor/plugins/visual_shader_editor_plugin.cpp index 2a5255fcdc0..c036a31ab57 100644 --- a/editor/plugins/visual_shader_editor_plugin.cpp +++ b/editor/plugins/visual_shader_editor_plugin.cpp @@ -230,11 +230,11 @@ void VisualShaderEditor::_update_custom_nodes() { } } -String VisualShaderEditor::_get_description(int i) { - if (add_options[i].highend) { - return TTR("(GLES3 only)") + " " + add_options[i].description; // TODO: change it to (Vulkan Only) when its ready +String VisualShaderEditor::_get_description(int p_idx) { + if (add_options[p_idx].highend) { + return TTR("(GLES3 only)") + " " + add_options[p_idx].description; // TODO: change it to (Vulkan Only) when its ready } else { - return add_options[i].description; + return add_options[p_idx].description; } } diff --git a/editor/plugins/visual_shader_editor_plugin.h b/editor/plugins/visual_shader_editor_plugin.h index 4fee2ac9209..cd5efc366ba 100644 --- a/editor/plugins/visual_shader_editor_plugin.h +++ b/editor/plugins/visual_shader_editor_plugin.h @@ -158,7 +158,7 @@ class VisualShaderEditor : public VBoxContainer { void _show_preview_text(); void _update_preview(); - String _get_description(int i); + String _get_description(int p_idx); static VisualShaderEditor *singleton;