mirror of
https://github.com/godotengine/godot.git
synced 2024-11-15 08:32:54 +00:00
Fix VisualShaderInput (if compiled with MinGW) (correct, tested version)
This commit is contained in:
parent
bd7b2354c5
commit
0a34fa701f
@ -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_str != "") {
|
if (op.sub_func == -1) {
|
||||||
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;
|
||||||
|
@ -137,6 +137,7 @@ class VisualShaderEditor : public VBoxContainer {
|
|||||||
category = p_category;
|
category = p_category;
|
||||||
sub_category = p_sub_category;
|
sub_category = p_sub_category;
|
||||||
description = p_description;
|
description = p_description;
|
||||||
|
sub_func = 0;
|
||||||
sub_func_str = p_sub_func;
|
sub_func_str = p_sub_func;
|
||||||
return_type = p_return_type;
|
return_type = p_return_type;
|
||||||
mode = p_mode;
|
mode = p_mode;
|
||||||
|
Loading…
Reference in New Issue
Block a user