mirror of
https://github.com/godotengine/godot.git
synced 2025-10-27 03:34:17 +00:00
Fixed constness of variant functions, as well as visual script sequence ports. Closes #11258
This commit is contained in:
parent
0a6446ff36
commit
c5da28f24c
3 changed files with 52 additions and 23 deletions
|
|
@ -42,7 +42,7 @@
|
|||
|
||||
int VisualScriptFunctionCall::get_output_sequence_port_count() const {
|
||||
|
||||
if (method_cache.flags & METHOD_FLAG_CONST || call_mode == CALL_MODE_BASIC_TYPE)
|
||||
if (method_cache.flags & METHOD_FLAG_CONST || (call_mode == CALL_MODE_BASIC_TYPE && Variant::is_method_const(basic_type, function)))
|
||||
return 0;
|
||||
else
|
||||
return 1;
|
||||
|
|
@ -50,7 +50,7 @@ int VisualScriptFunctionCall::get_output_sequence_port_count() const {
|
|||
|
||||
bool VisualScriptFunctionCall::has_input_sequence_port() const {
|
||||
|
||||
if (method_cache.flags & METHOD_FLAG_CONST || call_mode == CALL_MODE_BASIC_TYPE)
|
||||
if (method_cache.flags & METHOD_FLAG_CONST || (call_mode == CALL_MODE_BASIC_TYPE && Variant::is_method_const(basic_type, function)))
|
||||
return false;
|
||||
else
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue