1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-04 17:04:49 +00:00

made visual shader ports expandable by default if there is only one output port and it's of any vector type

Co-authored-by: QbieShay <cislaghi.ilaria@gmail.com>
This commit is contained in:
DennisManaa
2023-02-10 15:10:38 +01:00
parent fe5b1c8d49
commit f248420a2b
6 changed files with 65 additions and 113 deletions

View File

@@ -251,6 +251,10 @@ bool VisualShaderNode::is_generate_input_var(int p_port) const {
}
bool VisualShaderNode::is_output_port_expandable(int p_port) const {
VisualShaderNode::PortType port = get_output_port_type(p_port);
if (get_output_port_count() == 1 && (port == PORT_TYPE_VECTOR_2D || port == PORT_TYPE_VECTOR_3D || port == PORT_TYPE_VECTOR_4D)) {
return true;
}
return false;
}