Merge pull request #28372 from Chaosus/fix_vs_transform_preview2

Removes preview from existing transform nodes in visual shader
This commit is contained in:
Yuri Roubinsky 2019-04-24 08:13:59 +03:00 committed by GitHub
commit 6cf7cfa081
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -523,7 +523,7 @@ void VisualShaderEditor::_update_graph() {
}
}
if (vsnode->get_output_port_for_preview() >= 0) {
if (vsnode->get_output_port_for_preview() >= 0 && vsnode->get_output_port_type(vsnode->get_output_port_for_preview()) != VisualShaderNode::PORT_TYPE_TRANSFORM) {
VisualShaderNodePortPreview *port_preview = memnew(VisualShaderNodePortPreview);
port_preview->setup(visual_shader, type, nodes[n_i], vsnode->get_output_port_for_preview());
port_preview->set_h_size_flags(SIZE_SHRINK_CENTER);