summaryrefslogtreecommitdiff
path: root/core/variant
AgeCommit message (Collapse)Author
2023-01-09Merge pull request #71082 from AThousandShips/array_find_fixRémi Verschelde
Fix for comparisons with PackedArrays
2023-01-09Merge pull request #70996 from reduz/properly-report-callable-bound-argumentsRémi Verschelde
Properly report Callable bound arguments
2023-01-08Properly report Callable bound argumentsJuan Linietsky
Fixes #63213 Adds a function: Callable::get_amount_of_arguments_bound() to query this in callables. Exposed to the engine API.
2023-01-08Use BitField<> in core type masksJuan Linietsky
* All core types masks are now correctly marked as bitfields. * The enum hacks in MouseButtonMask and many other types are gone. This ensures that binders to other languages non C++ can actually implement type safe bitmasks. * Most bitmask operations replaced by functions in BitField<> * Key is still a problem because its enum and mask at the same time. While it kind of works in C++, this most likely can't be implemented safely in other languages and will have to be changed at some point. Mostly left as-is. * Documentation and API dump updated to reflect bitfields in core types.
2023-01-08Fix for PackedArray comparisonNinni Pipping
2023-01-07Merge pull request #71000 from reduz/callable-bind-from-arrayRémi Verschelde
Allow binding Callable arguments from an array
2023-01-06Allow binding Callable arguments from an arrayJuan Linietsky
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]) ```
2023-01-06Unbind Variant methods that change immutable types.Juan Linietsky
Fixes #62706. Code is commented instead of removed to clarify why they should not be re-added.
2023-01-05One Copyright Update to rule them allRémi Verschelde
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".
2022-12-30GDScript: Error when assigning return value of void functionGeorge Marques
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.
2022-12-20Fix empty zero assigners for the variant typesYuri Rubinsky
2022-12-15Merge pull request #69709 from RandomShaper/refactor_spirv_reflectionRémi Verschelde
Refactor SPIR-V reflection into a generic RenderingDevice feature
2022-12-12VariantParser make readahead optionallawnjelly
It turns out some areas are independently moving / reading filepointers outside of the VariantParser, which can cause the readahead caching to get out of sync. This PR makes the VariantParser readahead to be optional to allow for these use cases.
2022-12-12Add default, zeroing constructor to BitFieldPedro J. Estébanez
2022-12-12Merge pull request #69718 from groud/finally_rename_gdnative_to_gdextensionRémi Verschelde
Rename all gdnative occurences to gdextension
2022-12-12Rename all gdnative occurences to gdextensionGilles Roudière
Non-exhaustive list of case-sensitive renames: GDExtension -> GDNative GDNATIVE -> GDEXTENSION gdextension -> gdnative ExtensionExtension ->Extension (for where there was GDNativeExtension) EXTENSION_EXTENSION ->EXTENSION (for where there was GDNATIVE_EXTENSION) gdnlib -> gdextension gdn_interface -> gde_interface gdni -> gde_interface
2022-12-09Merge pull request #68747 from rune-scape/rune-stringname-unificationRémi Verschelde
GDScript: Unify StringName and String
2022-12-06Fix Variant StringName `is_zero` being invertedAaron Franke
2022-12-05Unify String and StringNamerune-scape
2022-12-05Fix suppressed error message on error when using % format stringRindbee
Before, the valid flag would always be true. On formatting errors, an error message is returned as the result. (No error prompts.)
2022-12-05Merge pull request #69119 from lawnjelly/faster_variant_parser_masterRémi Verschelde
Add readahead to VariantParser [4.x]
2022-11-28Don't break parsing on missing resourceskobewi
2022-11-25Remove `Array.find_last()`Micky
2022-11-24Merge pull request #68386 from MewPurPur/snappedi-snappedfRémi Verschelde
Implement snappedi, snappedf, and Vector[2/3/4]i.snapped
2022-11-24Add readahead to VariantParserlawnjelly
Adds a readahead buffer to VariantParser, to prevent large numbers of freads for single bytes, which is inefficient.
2022-11-24Refactor Curve3D::_bake() methodYaohua Xiong
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;
2022-11-23Merge pull request #67726 from HenryClones/integer-lerping-errorsRémi Verschelde
Add case for Variant::INT in lerp variant switch
2022-11-22Add case for Variant::INT in lerp variant switchXpertice
2022-11-19Implement snappedi, snappedf, and Vector[2/3/4]i.snappedVolTer
2022-11-15Merge pull request #62814 from KoBeWi/strintRémi Verschelde
Restore numeric from String constructors
2022-11-14Merge pull request #68657 from Sauermann/fix-redundant-initializationRémi Verschelde
Remove redundant non-trivial Variant types initializations
2022-11-14Fix periods in editor strings and messagesHugo Locurcio
- Ensure all strings with ellipsis end with 3 periods instead of 2. - Fix extraneous period in "Error calling from signal '...' to callable" messages.
2022-11-14Remove redundant Variant-types initializationsMarkus Sauermann
2022-11-06Merge pull request #67730 from KoBeWi/late_to_the_callRémi Verschelde
Add call_deferred() method to Callable
2022-11-04Add call_deferred() method to Callablekobewi
2022-11-04Add support for empty delimiter in String.splitkobewi
2022-11-03Merge pull request #68192 from aaronfranke/unify-node3d-eulerRémi Verschelde
Unify Node3D RotationOrder with global EulerOrder
2022-11-02Allow getting Quaternion rotation in different Euler ordersAaron Franke
2022-11-02Unify Node3D RotationOrder with global EulerOrderAaron Franke
2022-11-02Move EulerOrder enum to math_defs.h and global scopeAaron Franke
2022-11-02Merge pull request #68118 from aaronfranke/quat-from-eulerRémi Verschelde
Replace Quaternion Euler constructor with `from_euler` method
2022-11-02Merge pull request #64830 from dalexeev/color-hide-internalsRémi Verschelde
Remove internal functions of named colors from the public API
2022-11-02Merge pull request #66361 from dalexeev/remove-int-plus-stringRémi Verschelde
Unexpose confusing `String + int` and `int + String` operations
2022-11-01Support for checking that Projection is(not) nullRafał Mikrut
2022-11-01Replace Quaternion Euler constructor with `from_euler` methodAaron Franke
2022-10-27Merge pull request #66383 from aaronfranke/basis-from-eulerClay John
Clean up Basis from Euler code
2022-10-23Merge pull request #67655 from MewPurPur/remove-dupe-registrationsYuri Rubinsky
2022-10-21Clean up Basis from Euler codeAaron Franke
2022-10-21Merge pull request #67444 from nonunknown/array_pick_randomMax Hilbrunner
Add ability to pick random value from array
2022-10-21Remove internal functions of named colors from the public APIDanil Alexeev