summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-11-24 19:04:21 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-11-24 19:04:21 +0100
commita16d3625c3b2e82c88cb29e897523aa53f78ec7c (patch)
treeec06d306f0123111ad38f21a9c06362c0743ae53
parente1b87cc6a5b10ddbef605476d3b00170d270c4f4 (diff)
parenta973ddd28db0ac6fa5fa77518fa041503241f139 (diff)
Merge pull request #69128 from Chaosus/vs_fix_custom_nodes
Fix custom visual shader nodes not being loaded at startup
-rw-r--r--editor/plugins/visual_shader_editor_plugin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/visual_shader_editor_plugin.cpp b/editor/plugins/visual_shader_editor_plugin.cpp
index f22927e68d..a51396d712 100644
--- a/editor/plugins/visual_shader_editor_plugin.cpp
+++ b/editor/plugins/visual_shader_editor_plugin.cpp
@@ -1113,6 +1113,8 @@ void VisualShaderEditor::edit(VisualShader *p_visual_shader) {
}
visual_shader->set_graph_offset(graph->get_scroll_ofs() / EDSCALE);
_set_mode(visual_shader->get_mode());
+
+ _update_nodes();
} else {
if (visual_shader.is_valid()) {
Callable ce = callable_mp(this, &VisualShaderEditor::_update_preview);