Skip to content

Commit

Permalink
Removed incorrect "Transform" preview from visual shaders
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaosus committed Apr 23, 2019
1 parent b0da7b6 commit be11b6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/plugins/visual_shader_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down

0 comments on commit be11b6f

Please sign in to comment.