summaryrefslogtreecommitdiff
path: root/editor/plugins
diff options
context:
space:
mode:
authorThomas Herzog <thomas.herzog@mail.com>2018-07-16 15:40:41 +0200
committerGitHub <noreply@github.com>2018-07-16 15:40:41 +0200
commita21aeec4b971007a1930730b5d0490ffcf8a725c (patch)
tree2d38e64fe23ee3e8d1a0df9ebb8ee04af79c92e4 /editor/plugins
parentc0c243ac5c0a8b03a64fdb18b0e647ae6427279c (diff)
parentc88da2fce53365e9f8446ef473446ed09e4dd012 (diff)
Merge pull request #20167 from Chaosus/fix_vshader_bug
Fix display scale bug in visual shaders
Diffstat (limited to 'editor/plugins')
-rw-r--r--editor/plugins/visual_shader_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/visual_shader_editor_plugin.cpp b/editor/plugins/visual_shader_editor_plugin.cpp
index 1302a89e3f..8d232a0586 100644
--- a/editor/plugins/visual_shader_editor_plugin.cpp
+++ b/editor/plugins/visual_shader_editor_plugin.cpp
@@ -157,7 +157,7 @@ void VisualShaderEditor::_update_graph() {
vsnode->connect("changed", this, "_node_changed", varray(vsnode->get_instance_id()), CONNECT_DEFERRED);
}*/
- node->set_offset(position * EDSCALE);
+ node->set_offset(position);
node->set_title(vsnode->get_caption());
node->set_name(itos(nodes[n_i]));