Skip to content

Commit

Permalink
Merge pull request godotengine#41922 from Chaosus/fix_build_warning
Browse files Browse the repository at this point in the history
Fix build warning in visual_shader_editor
  • Loading branch information
akien-mga authored Sep 9, 2020
2 parents 7015c59 + da488ff commit 6247f60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/plugins/visual_shader_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ void VisualShaderGraphPlugin::make_dirty(bool p_enabled) {
}

void VisualShaderGraphPlugin::register_link(VisualShader::Type p_type, int p_id, VisualShaderNode *p_visual_node, GraphNode *p_graph_node) {
links.insert(p_id, { p_type, p_visual_node, p_graph_node, p_visual_node->get_output_port_for_preview() != -1, -1 });
links.insert(p_id, { p_type, p_visual_node, p_graph_node, p_visual_node->get_output_port_for_preview() != -1, -1, Map<int, Port>(), nullptr });

if (!p_visual_node->is_connected("show_port_preview", callable_mp(this, &VisualShaderGraphPlugin::show_port_preview))) {
p_visual_node->connect("show_port_preview", callable_mp(this, &VisualShaderGraphPlugin::show_port_preview), varray(p_id), CONNECT_DEFERRED);
Expand Down

0 comments on commit 6247f60

Please sign in to comment.