Fix incorrect scroll when the user perform first action on visual shader
This commit is contained in:
parent
bbb1af91d8
commit
cd3d538f12
@ -69,6 +69,7 @@ void VisualShaderEditor::edit(VisualShader *p_visual_shader) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
visual_shader = Ref<VisualShader>(p_visual_shader);
|
visual_shader = Ref<VisualShader>(p_visual_shader);
|
||||||
|
visual_shader->set_graph_offset(graph->get_scroll_ofs() / EDSCALE);
|
||||||
} else {
|
} else {
|
||||||
visual_shader.unref();
|
visual_shader.unref();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user