summaryrefslogtreecommitdiff
path: root/editor/plugins
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-04-23 23:19:31 +0200
committerGitHub <noreply@github.com>2019-04-23 23:19:31 +0200
commit0453e6eddc07895d0683ea8534be531b50cb7cd0 (patch)
tree12a95551a87eb313fa3be7ff5e2a43c7f2a4ed49 /editor/plugins
parenta5ad049bf3d93a35d6873ccb82815792a3086c20 (diff)
parentbe11b6f04d1b13c7cd46a2d57f26cf72dc73a8b8 (diff)
Merge pull request #28348 from Chaosus/fix_vs_transform_preview
Removed incorrect "Transform" preview from visual shaders
Diffstat (limited to 'editor/plugins')
-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 1248c0c19b..c619b5d224 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"));