Browse Source

Merge pull request #32541 from Chaosus/vs_fix_input

Fix VisualShaderInput (if compiled with MinGW)
Yuri Roubinsky 5 years ago
parent
commit
bd7b2354c5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      editor/plugins/visual_shader_editor_plugin.cpp

+ 1 - 1
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;
 		Dictionary d;
 		d["id"] = id;
 		d["id"] = id;
-		if (op.sub_func == -1) {
+		if (op.sub_func_str != "") {
 			d["sub_func"] = op.sub_func_str;
 			d["sub_func"] = op.sub_func_str;
 		} else {
 		} else {
 			d["sub_func"] = op.sub_func;
 			d["sub_func"] = op.sub_func;