summaryrefslogtreecommitdiffstats
path: root/core/variant/variant_call.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Replace error checks against `size` with `is_empty`A Thousand Ships2024-02-091-4/+4
|
* Promote CowData to 64 bitsJuan Linietsky2024-01-191-1/+1
| | | | Fixes a lot of bugs, please help me fill the list.
* Add const lvalue ref to container parametersMuller-Castro2024-01-051-5/+5
|
* Merge pull request #83163 from Chubercik/vectorXi_dist_methodsRémi Verschelde2024-01-031-0/+6
|\ | | | | | | Implement `Vector2i/3i/4i` methods: `distance_to` and `distance_squared_to`
| * Implement `Vector2i/3i/4i` methods: `distance_to` and `distance_squared_to`Jakub Marcowski2023-10-121-0/+6
| |
* | Merge pull request #82264 from dalexeev/core-builtin-methods-as-callablesRémi Verschelde2024-01-021-37/+48
|\ \ | | | | | | | | | Core: Allow methods of built-in `Variant` types to be used as Callables
| * | Core: Allow methods of built-in `Variant` types to be used as CallablesDanil Alexeev2023-10-251-37/+48
| |/
* / Add a `get_or_add` method to DictionaryAaron Franke2023-12-061-0/+1
|/
* Fix expected argument count for `Callable` call errorsDanil Alexeev2023-09-291-2/+0
|
* Merge pull request #79523 from aaronfranke/is-conformalRémi Verschelde2023-09-261-0/+2
|\ | | | | | | Add `is_conformal` method to Basis and Transform2D
| * Add `is_conformal` method to Basis and Transform2DAaron Franke2023-09-131-0/+2
| |
* | Add Vector2/3/4i.MAX and MINkobewi2023-09-161-0/+6
|/
* [Core] Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicableA Thousand Ships2023-09-111-12/+12
|
* Set builtin varrarg ptrcalls, called without arg.Daylily-Zeleen2023-09-021-9/+5
|
* Add `String.reverse` methodYuri Roubinski2023-06-211-0/+1
|
* Add the ability to look-at in model-space.Juan Linietsky2023-05-241-2/+9
| | | | | | | | | | This is a much simpler attempt to solve the same problem as #76060, but without breaking any compatibility. * Adds a description of what model space is in the Vector3 enums (MODEL_* constants). This has the proper axes laid out for imported 3D assets. * Adds the option to `look_at` using model_space, which uses Vector3.MODEL_FRONT as forward vector. The attempt of this PR is to still break the assumption that there is a single direction of forward (which is not the case in Godot) and make it easier to understand where 3D models are facing, as well as orienting them via look_at.
* Revert "Add API for HSL conversion"clayjohn2023-05-101-1/+0
| | | | This reverts commit 0b7fd664c1ba372a77f78764b4ff9acfeb1f8052.
* Merge pull request #76661 from bonjorno7/hslRémi Verschelde2023-05-091-0/+1
|\ | | | | | | Add API for HSL conversion
| * Add API for HSL conversionbonjorno72023-05-091-0/+1
| | | | | | | | | | Math ported pretty much 1:1 from https://en.wikipedia.org/wiki/HSL_and_HSV Style doesn't match the existing HSV code exactly, but should be close enough.
* | Merge pull request #76735 from AThousandShips/natural_cmpRémi Verschelde2023-05-091-0/+1
|\ \ | | | | | | | | | Add `naturalcasecmp_to` function to `String`
| * | Add `naturalcasecmp_to` function to `String`Ninni Pipping2023-05-071-0/+1
| |/ | | | | | | Functions as a complement to `naturalnocasecmp_to`
* | Merge pull request #75510 from SilicDev/string_eraseClay John2023-05-051-0/+1
|\ \ | |/ |/| Reimplement `String.erase()` as immutable method
| * Reimplement String.eraseSilicDev2023-05-041-0/+1
| |
* | Expose `determinant` in Transform2D, rename internal methodAaron Franke2023-04-221-0/+1
| |
* | Unify descriptions of vector methodsHaoyu Qiu2023-04-141-1/+1
|/ | | | | | | | * is_equal_approx * normalize * length_squared * posmod * posmodv
* add `hex_decode()` to `String`bendn2023-04-051-0/+1
|
* Add GDScript `to_wchar_buffer` and `get_string_from_wchar` functions.bruvzg2023-03-211-0/+15
|
* GDScript: Fix issues with typed arraysDmitrii Maganov2023-01-311-5/+6
|
* Move Array:set_typed to internal GDExtension structure and unexposed it.bruvzg2023-01-301-1/+0
|
* Merge pull request #62499 from fire/gltf-binary-img-compressionRémi Verschelde2023-01-271-0/+1
|\ | | | | | | Handle gltf binary images
| * Handle gltf binaryK. S. Ernest (iFire) Lee2023-01-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | [ Ignore and Warn | Extract Textures (default) | Optimize Loading Embedded as Basisu ] Enable compressed mip maps from Basis Universal for faster compressions. Increase the quality of Basis to avoid corruption. To keep compatibility use the first mip of the previous internal Godot format. Because texture names may have invalid filename characters, adds String::validate_filename to sanitize filenames for import pipeline use.
* | GDScript: Fix test for read-only state of constantsDmitrii Maganov2023-01-271-1/+3
|/
* Fix bind " convergence_dist" containing spaceJan Haller2023-01-231-1/+1
|
* 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
|