mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Fix Callable call error reporting.
* Fix potential crash when using bind in `Variant::get_callable_error_text()` * Properly compute bound arguments so they can be properly shown. * Add a function to obtain the actual bound arguments.
This commit is contained in:
@@ -107,6 +107,12 @@
|
||||
Calls the method represented by this [Callable]. Unlike [method call], this method expects all arguments to be contained inside the [param arguments] [Array].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_bound_arguments" qualifiers="const">
|
||||
<return type="Array" />
|
||||
<description>
|
||||
Return the bound arguments (as long as [method get_bound_arguments_count] is greater than zero), or empty (if [method get_bound_arguments_count] is less than or equal to zero).
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_bound_arguments_count" qualifiers="const">
|
||||
<return type="int" />
|
||||
<description>
|
||||
|
||||
Reference in New Issue
Block a user