summaryrefslogtreecommitdiff
path: root/editor/plugins
diff options
context:
space:
mode:
authorChaosus <chaosus89@gmail.com>2019-05-29 07:41:29 +0300
committerChaosus <chaosus89@gmail.com>2019-05-29 07:41:29 +0300
commitcd3d538f1210b0a2d90850ccd2fe7e00c221a090 (patch)
tree4e44ad2e83581345d057645ae3fdbbec1e5d8525 /editor/plugins
parentbbb1af91d8c3d7fcf4163614e9916b20ed3cd9c3 (diff)
Fix incorrect scroll when the user perform first action on visual shader
Diffstat (limited to 'editor/plugins')
-rw-r--r--editor/plugins/visual_shader_editor_plugin.cpp1
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();
}