diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-09-09 21:49:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-09 21:49:29 +0200 |
commit | 6247f60c15b913dae3b311fd10a3a94811d1166a (patch) | |
tree | 0113c3cc3b8e38045c730e8dadb6cefb8eb4b4b1 | |
parent | 7015c59e2eb3979ac015e26af6e983fb83867ff6 (diff) | |
parent | da488ff04145c85645fcb80feb38c62a7f46f920 (diff) |
Merge pull request #41922 from Chaosus/fix_build_warning
Fix build warning in visual_shader_editor
-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 3753b364d2..ccd236cbe4 100644 --- a/editor/plugins/visual_shader_editor_plugin.cpp +++ b/editor/plugins/visual_shader_editor_plugin.cpp @@ -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); |