Removes preview from existing transform nodes in visual shader

This commit is contained in:
Chaosus 2019-04-24 08:08:29 +03:00
parent 80f91c9d36
commit 9ac770be45
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);