Merge pull request #29270 from Chaosus/fix_vs_init_bug

Fix incorrect scroll when the user perform first action on visual shader
This commit is contained in:
Yuri Roubinsky 2019-05-29 07:58:15 +03:00 committed by GitHub
commit 123edd04c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,6 +69,7 @@ void VisualShaderEditor::edit(VisualShader *p_visual_shader) {
}
}
visual_shader = Ref<VisualShader>(p_visual_shader);
visual_shader->set_graph_offset(graph->get_scroll_ofs() / EDSCALE);
} else {
visual_shader.unref();
}