summaryrefslogtreecommitdiffstats
path: root/core/variant
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Merge pull request #81822 from nlupugla/nodepath-sliceRémi Verschelde2024-02-291-0/+1
|\ \ \ \ | |/ / / |/| | | | | | | Add `NodePath::slice` method
| * | | Added NodePath::slice method.nlupugla2023-12-131-0/+1
| | | |
* | | | Remove word duplicates in comments and strings, and fix casing and punctuationRobert Yevdokimov2024-02-231-1/+1
| | | |
* | | | Make Callable bind method constAaron Franke2024-02-222-2/+2
| | | |
* | | | Add const lvalue ref to core/* container parametersMuller-Castro2024-02-144-129/+129
| | | |
* | | | Replace error checks against `size` with `is_empty`A Thousand Ships2024-02-092-7/+7
| | | |
* | | | Merge pull request #87992 from allenwp/87991-typed-array-additionsRémi Verschelde2024-02-071-0/+8
|\ \ \ \ | | | | | | | | | | | | | | | Added newer Variant types to `typed_array.h`
| * | | | Added newer Variant types to typed_array.hAllen Pestaluky2024-02-051-0/+8
| | | | | | | | | | | | | | | | | | | | Fixes #87991
* | | | | Merge pull request #67226 from Mickeon/typed-packingRémi Verschelde2024-02-071-18/+18
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | Use `Packed*Array` over `Vector<T>` in TypedArray
| * | | | | Use `Packed*Array` over `Vector<T>` in TypedArrayMicky2024-02-061-18/+18
| |/ / / / | | | | | | | | | | | | | | | Same as #67220 but for `typed_array.h`
* | | | | Merge pull request #67220 from Mickeon/variant-packingRémi Verschelde2024-02-072-113/+113
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | Use `Packed*Array` over `Vector<T>` in Variant
| * | | | Use Packed*Array over Vector<T> in VariantMicky2024-02-062-113/+113
| | |/ / | |/| | | | | | | | | | | | | | | | | | Also shuffles some method definitions and declarations to be more consistent with the way the Variant types are ordered across the codebase. And removes an unnecessary JSON assign (`JSON::stringify` can now be accessed statically)
* / | | Use '_v' shorthand for type traits and 'if constexpr' where appropriatevittorioromeo2024-02-022-12/+8
|/ / /
* | | Merge pull request #87688 from AThousandShips/what_is_thisRémi Verschelde2024-01-293-17/+17
|\ \ \ | | | | | | | | | | | | Remove unnecessary `this->` expressions
| * | | Remove unnecessary `this->` expressionsA Thousand Ships2024-01-293-17/+17
| | | |
* | | | Add InputEventKey.location to tell left from rightMel Collins2024-01-262-0/+2
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a new enum `KeyLocation` and associated property `InputEventKey.location`, which indicates the left/right location of key events which may come from one of two physical keys, eg. Shift, Ctrl. It also adds simulation of missing Shift KEYUP events for Windows. When multiple Shifts are held down at the same time, Windows natively only sends a KEYUP for the last one to be released.
* | | Merge pull request #86730 from reduz/64-bit-cowdataRémi Verschelde2024-01-191-1/+1
|\ \ \ | | | | | | | | Promote CowData to 64 bits
| * | | Promote CowData to 64 bitsJuan Linietsky2024-01-191-1/+1
| | | | | | | | | | | | | | | | Fixes a lot of bugs, please help me fill the list.
* | | | Update deferred calls to use Callableskobewi2024-01-091-2/+1
|/ / /
* | | Add const lvalue ref to container parametersMuller-Castro2024-01-052-7/+7
| | |
* | | Merge pull request #82639 from golfinq/gdscript-improve-indexing-errorRémi Verschelde2024-01-042-5/+52
|\ \ \ | | | | | | | | | | | | GDScript: Improve error messages for invalid indexing
| * | | GDScript: Improve error messages for invalid indexingRémi Verschelde2023-10-022-5/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These errors are very common when using an invalid property name or calling on an object of the wrong type, and the previous message was a bit cryptic for users. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com> Co-authored-by: golfinq <golfinqz@gmail.com>
* | | | Merge pull request #86364 from aaronfranke/basis-divideRémi Verschelde2024-01-041-0/+9
|\ \ \ \ | | | | | | | | | | | | | | | Add and expose Basis/Transform2D/3D division by float operator
| * | | | Add and expose Basis/Transform2D/3D division by float operatorAaron Franke2023-12-201-0/+9
| | | | |
* | | | | 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-025-61/+217
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | 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-255-61/+217
| | | | | | |
* | | | | | | Merge pull request #83452 from RandomShaper/rd_commonYuri Sizov2023-12-201-4/+7
|\ \ \ \ \ \ \ | |_|_|/ / / / |/| | | | | | Split `RenderingDevice` into API-agnostic and `RenderingDeviceDriver` parts
| * | | | | | BitField: allow chained set_flag(), make constructors constexprPedro J. Estébanez2023-12-151-4/+7
| | | | | | |
* | | | | | | Add PackedRealArray as an alias for Vector<real_t>Aaron Franke2023-12-181-0/+1
| | | | | | |
* | | | | | | Rename VariantZeroAssigner to VariantDefaultInitializerAaron Franke2023-12-171-76/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | And the method zero() is now init()
* | | | | | | Merge pull request #78095 from aaronfranke/dict-get-or-set-defaultYuri Sizov2023-12-163-0/+11
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Add a `get_or_add` method to Dictionary
| * | | | | | | Add a `get_or_add` method to DictionaryAaron Franke2023-12-063-0/+11
| | |_|_|_|/ / | |/| | | | |
* | | | | | | Merge pull request #73896 from vnen/object-null-boolean-consistencyYuri Sizov2023-12-162-17/+17
|\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | | | | | | | | | | Make freed object different than null in comparison operators
| * | | | | | Make freed object different than null in comparison operatorsGeorge Marques2023-08-212-17/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is so everything is consistent, as a freed object is not equivalent to `null` in general. The booleanization of a freed object still returns `false` to work as an easy check for validity of objects. Similarly, the negation of a freed object returns `true`. Also makes freed objects different from each other (if they are not the same reference).
* | | | | | | Don't abort loading when ext_resource is missingkobewi2023-11-221-1/+4
| |/ / / / / |/| | | | |
* | | | | | Merge pull request #84815 from TokageItLab/array-animationRémi Verschelde2023-11-161-0/+3
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Rework blending method in `Variant` animation for `Int`/`Array`/`String`
| * | | | | | Rework blending method in Variant animation for Int/Array/StringSilc Lizard (Tokage) Renew2023-11-161-0/+3
| | | | | | |
* | | | | | | Fix sizeof usage for Variant pointers in allocaAlistair Leslie-Hughes2023-11-161-2/+2
|/ / / / / / | | | | | | | | | | | | | | | | | | Coverity report this as a non portable usage of sizeof
* | / / / / Keep Variant type after zero()kobewi2023-11-081-0/+6
| |/ / / / |/| | | |
* | | | | Fix StringName leaks in VariantParserYuri Sizov2023-10-191-1/+1
| | | | |
* | | | | GDScript: Fix incorrect error message for utility functionsDanil Alexeev2023-10-161-28/+106
| |/ / / |/| | |
* | | | Merge pull request #83003 from AThousandShips/null_check_extraRémi Verschelde2023-10-091-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicable
| * | | | Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicableA Thousand Ships2023-10-081-1/+1
| | | | |
* | | | | Merge pull request #82695 from maiself/object-less-callables-fixesRémi Verschelde2023-10-091-0/+7
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | Fixes to allow object-less callables throughout Godot
| * | | | Fixes to allow object-less callables throughout GodotMai Lavelle2023-10-061-0/+7
| | |_|/ | |/| | | | | | | | | | This fixes #81887
* | | | Merge pull request #82794 from dsnopek/gdextension-validated-callRémi Verschelde2023-10-061-1/+1
|\ \ \ \ | |/ / / |/| | | | | | | GDExtension: Convert `validated_call()` to `ptrcall()` (rather than `call()`)
| * | | GDExtension: Convert `validated_call()` to `ptrcall()` (rather than `call()`)David Snopek2023-10-041-1/+1
| | | |
* | | | Add vararg call() method to C++ Callablekobewi2023-10-052-0/+16
|/ / /