mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 17:11:30 +00:00
Merge pull request #28348 from Chaosus/fix_vs_transform_preview
Removed incorrect "Transform" preview from visual shaders
This commit is contained in:
commit
0453e6eddc
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue