Merge pull request #52709 from Chaosus/vs_fix_add_node

This commit is contained in:
Rémi Verschelde 2021-09-15 18:37:59 +02:00 committed by GitHub
commit 520462e98c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4042,7 +4042,7 @@ VisualShaderEditor::VisualShaderEditor() {
graph->get_zoom_hbox()->add_child(add_node);
add_node->set_text(TTR("Add Node..."));
graph->get_zoom_hbox()->move_child(add_node, 0);
add_node->connect("pressed", callable_mp(this, &VisualShaderEditor::_show_members_dialog), varray(false));
add_node->connect("pressed", callable_mp(this, &VisualShaderEditor::_show_members_dialog), varray(false, VisualShaderNode::PORT_TYPE_MAX, VisualShaderNode::PORT_TYPE_MAX));
preview_shader = memnew(Button);
preview_shader->set_flat(true);