Skip to content

Commit

Permalink
Revert sequence port VisualScriptPropertySet basic type
Browse files Browse the repository at this point in the history
Revert a part of godotengine#50709.
Adding a sequence port to basic type set breaks backwards compatibility
  • Loading branch information
Gallilus authored and lekoder committed Dec 18, 2021
1 parent 144bfdf commit 2a0dcf3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/visual_script/visual_script_func_nodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2a0dcf3

Please sign in to comment.