summaryrefslogtreecommitdiffstats
path: root/core/variant/variant_call.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Rename `center` method to `get_center` in Plane.Raul Santos2023-01-151-1/+1
|
* Fix Callable call error reporting.Juan Linietsky2023-01-101-0/+1
| | | | | | * 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.
* Merge pull request #70996 from reduz/properly-report-callable-bound-argumentsRémi Verschelde2023-01-091-0/+1
|\ | | | | | | Properly report Callable bound arguments
| * Properly report Callable bound argumentsJuan Linietsky2023-01-081-0/+1
| | | | | | | | | | Fixes #63213 Adds a function: Callable::get_amount_of_arguments_bound() to query this in callables. Exposed to the engine API.
* | Merge pull request #71000 from reduz/callable-bind-from-arrayRémi Verschelde2023-01-071-0/+1
|\ \ | | | | | | | | | Allow binding Callable arguments from an array
| * | Allow binding Callable arguments from an arrayJuan Linietsky2023-01-061-0/+1
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Restores 3.x functionality that was removed in the Signal/Callable refactor of 4.0. Fixes #64668. Implements https://github.com/godotengine/godot-proposals/issues/6034 Usage: ```GDScript callable.bindv([arg1,arg2,arg3]) ```
* / Unbind Variant methods that change immutable types.Juan Linietsky2023-01-061-3/+1
|/ | | | | Fixes #62706. Code is commented instead of removed to clarify why they should not be re-added.
* One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* GDScript: Error when assigning return value of void functionGeorge Marques2022-12-301-0/+2
| | | | | This also makes built-in method calls empty the return value when the method is void, to avoid keeping returning a garbage value in such case.
* Unify String and StringNamerune-scape2022-12-051-101/+240
|
* Remove `Array.find_last()`Micky2022-11-251-1/+0
|
* Merge pull request #68386 from MewPurPur/snappedi-snappedfRémi Verschelde2022-11-241-0/+3
|\ | | | | | | Implement snappedi, snappedf, and Vector[2/3/4]i.snapped
| * Implement snappedi, snappedf, and Vector[2/3/4]i.snappedVolTer2022-11-191-0/+3
| |
* | Refactor Curve3D::_bake() methodYaohua Xiong2022-11-241-0/+2
| | | | | | | | | | | | | | | | | | | | The main change is to caculate tangent directly from bezier curve, without going through discretized polyline, avoiding pitfalls of discretization. Other changes are: 1. Add an bezier_derivative() method for Vector3, Vector2, and Math; 2. Add an tesselate_even_length() method to Curve3D, which tesselate bezier curve to even length segments adaptively; 3. Cache the tangent vectors in baked_tangent_vector_cache;
* | Remove redundant Variant-types initializationsMarkus Sauermann2022-11-141-2/+2
|/
* Add support for empty delimiter in String.splitkobewi2022-11-041-2/+2
|
* Allow getting Quaternion rotation in different Euler ordersAaron Franke2022-11-021-1/+1
|
* Move EulerOrder enum to math_defs.h and global scopeAaron Franke2022-11-021-16/+2
|
* Merge pull request #68118 from aaronfranke/quat-from-eulerRémi Verschelde2022-11-021-0/+1
|\ | | | | | | Replace Quaternion Euler constructor with `from_euler` method
| * Replace Quaternion Euler constructor with `from_euler` methodAaron Franke2022-11-011-0/+1
| |
* | Merge pull request #64830 from dalexeev/color-hide-internalsRémi Verschelde2022-11-021-4/+0
|\ \ | |/ |/| | | Remove internal functions of named colors from the public API
| * Remove internal functions of named colors from the public APIDanil Alexeev2022-10-211-4/+0
| |
* | Clean up Basis from Euler codeAaron Franke2022-10-211-2/+2
| |
* | add ability to pick random value from arrayNonunknown2022-10-201-0/+1
|/
* Add `is_finite` method for checking built-in typesHaoyu Qiu2022-10-081-0/+10
|
* Merge pull request #65817 from bruvzg/typed_arrayRémi Verschelde2022-09-231-0/+8
|\
| * [GDExtension] Implement support for typed arrays.bruvzg2022-09-221-0/+8
| |
* | Callable: add callv methodRicardo Buring2022-09-211-0/+1
|/ | | | This method can be called from GDExtension.
* Replace Rect2(i) has_no_area with has_areaAaron Franke2022-09-041-2/+2
|
* Replace AABB has_no_volume with has_volumeAaron Franke2022-09-041-2/+2
| | | | Also replace has_no_surface with has_surface
* Add `is_zero_approx` methods to `Vector2`, `3`, and `4`Jonathan Nicholl2022-09-021-0/+3
|
* Merge pull request #63968 from KoBeWi/finding_stuff_in_a_dictionaryRémi Verschelde2022-09-011-0/+1
|\
| * Add Dictionary.find_key()kobewi2022-08-161-0/+1
| |
* | Discontinued spherical_interpolate_with in Transform3DSilc Renew2022-08-311-1/+0
| |
* | Add `String.to_{camel,pascal,snake}_case` methodsDanil Alexeev2022-08-301-0/+3
| |
* | Rename String `plus_file` to `path_join`Aaron Franke2022-08-291-1/+1
| |
* | Merge pull request #63602 from TokageItLab/cubic-interp-timeRémi Verschelde2022-08-221-0/+4
|\ \
| * | Make `cubic_interpolate()` consider key time in animationSilc Renew2022-08-191-0/+4
| |/
* / Expose Basis `set_orthogonal_index` method as a GridMap functionrafallus2022-08-201-1/+0
|/
* Expose clear method for packed arraysHaoyu Qiu2022-08-101-0/+9
|
* vector4 distance_squared_to and update csharpantonWetzel2022-08-091-0/+1
|
* Vector4/Vector4i: Add missing methods, tests and fix change of sign operatorHendrik Brucker2022-08-071-0/+6
|
* Arrays: Zero new items of trivial types on resize() (bindings only)Rémi Verschelde2022-08-041-5/+5
| | | | | | | | | | | | | | This is not enabled by default in the core version for performance reasons, as Vector/CowData are used in critical code paths where not zero'ing memory which is going to be set later on can be important. But for bindings / the scripting API, we make zero the new items by default (which already happened for built types like Vector3, etc., but not for trivial types like int, float). Fixes #43033. Co-authored-by: David Hoppenbrouwers <david@salt-inc.org>
* Fix consistency of translated/scaled/rotated in Transform2D and Transform3DFabian Keller2022-08-021-0/+6
|
* Remove Signal connect bindsJuan Linietsky2022-07-291-5/+5
| | | | | Remove the optional argument p_binds from `Object::connect` since it was deprecated by Callable.bind(). Changed all uses of it to Callable.bind()
* Merge pull request #63532 from TokageItLab/rename-cubic-slerpRémi Verschelde2022-07-281-2/+2
|\
| * rename and unify notation for spherical interpolationSilc Renew2022-07-271-2/+2
| |
* | Merge pull request #57698 from ↵Rémi Verschelde2022-07-281-2/+2
|\ \ | |/ |/| | | bluenote10/feature/rename_translated_to_translated_local
| * rename translate(d) to translate(d)_local in Transform 2D/3DFabian Keller2022-07-161-2/+2
| |
* | Add some missing Vector4 methodskobewi2022-07-261-1/+5
| |