diff options
author | Yuri Roubinsky <chaosus89@gmail.com> | 2019-10-04 11:04:20 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-04 11:04:20 +0300 |
commit | bd7b2354c5384527ed73b5d13cee61d85f38fec6 (patch) | |
tree | 0c02fa019d77162c367d1a1b7a0b41f52cf010df /editor/plugins/visual_shader_editor_plugin.cpp | |
parent | 4da56495202847cf22bca9874593a4ed15da05e6 (diff) | |
parent | bc67a18fe0cb1e45ae770d77c172b24d0acaaaea (diff) |
Merge pull request #32541 from Chaosus/vs_fix_input
Fix VisualShaderInput (if compiled with MinGW)
Diffstat (limited to 'editor/plugins/visual_shader_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/visual_shader_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |