浏览代码

Fix _get_description param name (visual shaders) (#31647)

Fix _get_description param name (visual shaders)
Yuri Roubinsky 6 年之前
父节点
当前提交
660682a2a3
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. 4 4
      editor/plugins/visual_shader_editor_plugin.cpp
  2. 1 1
      editor/plugins/visual_shader_editor_plugin.h

+ 4 - 4
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 {
 	} else {
-		return add_options[i].description;
+		return add_options[p_idx].description;
 	}
 	}
 }
 }
 
 

+ 1 - 1
editor/plugins/visual_shader_editor_plugin.h

@@ -158,7 +158,7 @@ class VisualShaderEditor : public VBoxContainer {
 
 
 	void _show_preview_text();
 	void _show_preview_text();
 	void _update_preview();
 	void _update_preview();
-	String _get_description(int i);
+	String _get_description(int p_idx);
 
 
 	static VisualShaderEditor *singleton;
 	static VisualShaderEditor *singleton;