Revert sequence port VisualScriptPropertySet basic type

Revert a part of #50709.
Adding a sequence port to basic type set breaks backwards compatibility
This commit is contained in:
David Cambré 2021-08-20 15:43:47 +02:00
parent 0452832a16
commit be7718c96c

View file

@ -901,11 +901,13 @@ static Ref<VisualScriptNode> create_function_call_node(const String &p_name) {
//////////////////////////////////////////
int VisualScriptPropertySet::get_output_sequence_port_count() const {
return 1;
return call_mode != CALL_MODE_BASIC_TYPE ? 1 : 0;
//return 1; //Adding a sequence port to set_basic_type breaks backwards compatibility
}
bool VisualScriptPropertySet::has_input_sequence_port() const {
return 1;
return call_mode != CALL_MODE_BASIC_TYPE;
//return 1; //Adding a sequence port to set_basic_type breaks backwards compatibility
}
Node *VisualScriptPropertySet::_get_base_node() const {