diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-09-03 00:30:43 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-09-03 00:31:39 -0300 |
commit | ee37c2f4330e9bd247576b5834cd2660cb520e13 (patch) | |
tree | 09cc4c79f6a53842ee5f059cc83e1aeb073807c0 /modules/visual_script | |
parent | bb34384a9c922c8f372e483310c964082ecff786 (diff) |
Made basic call nodes unsequenced, since they are like gdscript and most return const.
Diffstat (limited to 'modules/visual_script')
-rw-r--r-- | modules/visual_script/visual_script_func_nodes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/visual_script/visual_script_func_nodes.cpp b/modules/visual_script/visual_script_func_nodes.cpp index 79910aa2bd..daddac155e 100644 --- a/modules/visual_script/visual_script_func_nodes.cpp +++ b/modules/visual_script/visual_script_func_nodes.cpp @@ -12,7 +12,7 @@ int VisualScriptFunctionCall::get_output_sequence_port_count() const { - if (method_cache.flags&METHOD_FLAG_CONST) + if (method_cache.flags&METHOD_FLAG_CONST || call_mode==CALL_MODE_BASIC_TYPE) return 0; else return 1; @@ -20,7 +20,7 @@ int VisualScriptFunctionCall::get_output_sequence_port_count() const { bool VisualScriptFunctionCall::has_input_sequence_port() const{ - if (method_cache.flags&METHOD_FLAG_CONST) + if (method_cache.flags&METHOD_FLAG_CONST || call_mode==CALL_MODE_BASIC_TYPE) return false; else return true; |