From bc67a18fe0cb1e45ae770d77c172b24d0acaaaea Mon Sep 17 00:00:00 2001 From: Yuri Roubinsky Date: Fri, 4 Oct 2019 10:42:18 +0300 Subject: Fix VisualShaderInput if compiled with MinGW --- editor/plugins/visual_shader_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/plugins/visual_shader_editor_plugin.cpp b/editor/plugins/visual_shader_editor_plugin.cpp index c962751c7a..715b1a3b7c 100644 --- a/editor/plugins/visual_shader_editor_plugin.cpp +++ b/editor/plugins/visual_shader_editor_plugin.cpp @@ -2053,7 +2053,7 @@ Variant VisualShaderEditor::get_drag_data_fw(const Point2 &p_point, Control *p_f Dictionary d; d["id"] = id; - if (op.sub_func == -1) { + if (op.sub_func_str != "") { d["sub_func"] = op.sub_func_str; } else { d["sub_func"] = op.sub_func; -- cgit v1.2.3