Merge pull request #20953 from hpvb/fix-20322

Don't try to update the visual shader graph if it doesn't exist yet
This commit is contained in:
Rémi Verschelde 2018-08-13 20:47:24 +02:00 committed by GitHub
commit 641dd15b1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -119,6 +119,9 @@ void VisualShaderEditor::_update_graph() {
if (updating)
return;
if (visual_shader.is_null())
return;
graph->set_scroll_ofs(visual_shader->get_graph_offset() * EDSCALE);
VisualShader::Type type = VisualShader::Type(edit_type->get_selected());