Fix incorrect scroll when the user perform first action on visual shader

This commit is contained in:
Chaosus 2019-05-29 07:41:29 +03:00
parent bbb1af91d8
commit cd3d538f12

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();
}