summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorChaosus <chaosus89@gmail.com>2018-07-15 08:55:41 +0300
committerChaosus <chaosus89@gmail.com>2018-07-15 08:55:41 +0300
commitc88da2fce53365e9f8446ef473446ed09e4dd012 (patch)
tree39bc70006f9cd00b58d48e90701eb5ffee172f62 /editor
parentf6ce73f7245fe9cc06d942ac4c8cec44a7252c5c (diff)
Fix display scale bug in visual shaders
Diffstat (limited to 'editor')
-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]));