Fix incorrect scroll when the user perform first action on visual shader
This commit is contained in:
parent
bbb1af91d8
commit
cd3d538f12
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue