Removes preview from existing transform nodes in visual shader
This commit is contained in:
parent
80f91c9d36
commit
9ac770be45
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
VisualShaderNodePortPreview *port_preview = memnew(VisualShaderNodePortPreview);
|
||||||
port_preview->setup(visual_shader, type, nodes[n_i], vsnode->get_output_port_for_preview());
|
port_preview->setup(visual_shader, type, nodes[n_i], vsnode->get_output_port_for_preview());
|
||||||
port_preview->set_h_size_flags(SIZE_SHRINK_CENTER);
|
port_preview->set_h_size_flags(SIZE_SHRINK_CENTER);
|
||||||
|
|
Loading…
Reference in a new issue