浏览代码

Merge pull request #20167 from Chaosus/fix_vshader_bug

Fix display scale bug in visual shaders
Thomas Herzog 7 年之前
父节点
当前提交
a21aeec4b9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      editor/plugins/visual_shader_editor_plugin.cpp

+ 1 - 1
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]));