浏览代码

Return back spacer for non-expression nodes in visual shader

Yuri Roubinski 6 年之前
父节点
当前提交
8a0767d883
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      editor/plugins/visual_shader_editor_plugin.cpp

+ 4 - 0
editor/plugins/visual_shader_editor_plugin.cpp

@@ -604,6 +604,10 @@ void VisualShaderEditor::_update_graph() {
 					}
 				}
 
+				if (!is_group) {
+					hb->add_spacer();
+				}
+
 				if (valid_right) {
 					if (is_group) {
 						Button *remove_btn = memnew(Button);