From be7718c96c8d9c9626314341861e330ef0120966 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Cambr=C3=A9?= Date: Fri, 20 Aug 2021 15:43:47 +0200 Subject: [PATCH] Revert sequence port VisualScriptPropertySet basic type Revert a part of #50709. Adding a sequence port to basic type set breaks backwards compatibility --- modules/visual_script/visual_script_func_nodes.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/visual_script/visual_script_func_nodes.cpp b/modules/visual_script/visual_script_func_nodes.cpp index b42a89b35364..ffc870880623 100644 --- a/modules/visual_script/visual_script_func_nodes.cpp +++ b/modules/visual_script/visual_script_func_nodes.cpp @@ -901,11 +901,13 @@ static Ref 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 {