summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorChaosus <chaosus89@gmail.com>2019-04-23 21:52:06 +0300
committerChaosus <chaosus89@gmail.com>2019-04-23 21:52:06 +0300
commitbe11b6f04d1b13c7cd46a2d57f26cf72dc73a8b8 (patch)
tree1b1b1f3477e78c23a08a043a87f333845cdbc370 /editor
parentb0da7b66ce278179eedd0e21dae1d84ed3f4459d (diff)
Removed incorrect "Transform" preview from 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 e3fab34768..174c554b91 100644
--- a/editor/plugins/visual_shader_editor_plugin.cpp
+++ b/editor/plugins/visual_shader_editor_plugin.cpp
@@ -491,7 +491,7 @@ void VisualShaderEditor::_update_graph() {
}
}
- if (valid_right && edit_type->get_selected() == VisualShader::TYPE_FRAGMENT) {
+ if (valid_right && edit_type->get_selected() == VisualShader::TYPE_FRAGMENT && port_right != VisualShaderNode::PORT_TYPE_TRANSFORM) {
TextureButton *preview = memnew(TextureButton);
preview->set_toggle_mode(true);
preview->set_normal_texture(get_icon("GuiVisibilityHidden", "EditorIcons"));