diff options
author | Yuri Roubinsky <chaosus89@gmail.com> | 2019-05-29 07:58:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-29 07:58:15 +0300 |
commit | 123edd04c0d8cd560d0396fb349af2a6cd1a3e90 (patch) | |
tree | 4e44ad2e83581345d057645ae3fdbbec1e5d8525 | |
parent | bbb1af91d8c3d7fcf4163614e9916b20ed3cd9c3 (diff) | |
parent | cd3d538f1210b0a2d90850ccd2fe7e00c221a090 (diff) |
Merge pull request #29270 from Chaosus/fix_vs_init_bug
Fix incorrect scroll when the user perform first action on visual shader
-rw-r--r-- | editor/plugins/visual_shader_editor_plugin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/visual_shader_editor_plugin.cpp b/editor/plugins/visual_shader_editor_plugin.cpp index c2e847f211..a1b903576e 100644 --- a/editor/plugins/visual_shader_editor_plugin.cpp +++ b/editor/plugins/visual_shader_editor_plugin.cpp @@ -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(); } |