summaryrefslogtreecommitdiff
path: root/editor/plugins/visual_shader_editor_plugin.cpp
diff options
context:
space:
mode:
authorYuri Roubinsky <chaosus89@gmail.com>2019-08-03 19:10:12 +0300
committerGitHub <noreply@github.com>2019-08-03 19:10:12 +0300
commit20556e3fd818310daf475dcc68183c35cb4284e3 (patch)
treebe9743ad715c52fe2275158f1bb8c7972493c7da /editor/plugins/visual_shader_editor_plugin.cpp
parent4d08f72b767fa8ea9c3118b48a205dc87417df2e (diff)
parent8a0767d88362ce94386f79e7ce3d6bc780f970f0 (diff)
Return back spacer for non-expression nodes in visual shader (#31058)
Return back spacer for non-expression nodes in visual shader
Diffstat (limited to 'editor/plugins/visual_shader_editor_plugin.cpp')
-rw-r--r--editor/plugins/visual_shader_editor_plugin.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/plugins/visual_shader_editor_plugin.cpp b/editor/plugins/visual_shader_editor_plugin.cpp
index 4376e3e68f..4f7b9f9815 100644
--- a/editor/plugins/visual_shader_editor_plugin.cpp
+++ b/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);