Removed incorrect "Transform" preview from visual shaders
This commit is contained in:
parent
b0da7b66ce
commit
be11b6f04d
@ -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"));
|
||||
|
Loading…
Reference in New Issue
Block a user