mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 08:23:29 +00:00
Likely with bugs and with some features are missing, as well as profiler support, but VisualScript should be more or less done!
This commit is contained in:
parent
259418f827
commit
9890c1d2ca
26 changed files with 794 additions and 52 deletions
|
@ -529,9 +529,15 @@ public:
|
|||
}
|
||||
|
||||
if (!valid) {
|
||||
|
||||
r_error.error=Variant::CallError::CALL_ERROR_INVALID_METHOD;
|
||||
if (p_outputs[0]->get_type()==Variant::STRING) {
|
||||
r_error_str=*p_outputs[0];
|
||||
} else {
|
||||
if (unary)
|
||||
r_error_str=String(op_names[op])+RTR(": Invalid argument of type: ")+Variant::get_type_name(p_inputs[0]->get_type());
|
||||
else
|
||||
r_error_str=String(op_names[op])+RTR(": Invalid arguments: ")+"A: "+Variant::get_type_name(p_inputs[0]->get_type())+" B: "+Variant::get_type_name(p_inputs[1]->get_type());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue