Merge pull request #69128 from Chaosus/vs_fix_custom_nodes

Fix custom visual shader nodes not being loaded at startup
This commit is contained in:
Rémi Verschelde 2022-11-24 19:04:21 +01:00
commit a16d3625c3
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -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);