summaryrefslogtreecommitdiff
path: root/core/variant
AgeCommit message (Collapse)Author
2021-03-16Merge pull request #46378 from reduz/static-method-in-variant-typesRémi Verschelde
Add static method support to core Variant types
2021-03-16Add static method support to core Variant typesreduz
* Properly exposed, including validated and variant call * Bound static functions in String and Color * Did not add support for scripting languages, will have to be added manually.
2021-03-12Fixes small typos and grammar correctionAnshul7sp1
2021-03-09Merge pull request #45545 from abaire/relaxes_gltf_name_sanitizationRémi Verschelde
Relaxes node name sanitization in gltf documents.
2021-03-04Add missing ERR_FAIL_INDEX check to Variant::constructAlex Hirsch
Other functions in the same file validate parameters using the ERR_FAIL macros. This validation was missing for Variant::construct resulting in a crash when called with invalid data (p_type < 0). fix #46067
2021-02-24Relaxes Node naming constraints in glTF documents to match the Editor.abaire
2021-02-23Bind ClockDirection enumGeorge Marques
It's the only enum in math_defs.h not bound, and it's used by Plane.
2021-02-16Use Vector3.UP as a default value for look_at's up vectorAaron Franke
2021-02-16Added signed_angle_to for Vector3JestemStefan
2021-02-04Change sort_custom/bsearch_custom to use Callableskobewi
2021-02-01Replace ColorN and from HTML with a string constructorAaron Franke
2021-01-28Unify URI encoding/decoding and add to C#Aaron Franke
http_escape and percent_encode have been unified into uri_encode, and http_unescape and percent_decode have been unified into uri_decode.
2021-01-28Make hex_to_int and bin_to_int handle the prefix automaticallyAaron Franke
Also add BinToInt to C#
2021-01-27Merge pull request #45489 from aaronfranke/coreRémi Verschelde
Type consistencies in core
2021-01-26Type consistencies in coreAaron Franke
2021-01-26Renamed String.ord_at to unicode_atYuri Roubinsky
2021-01-26Remove Quat set methods in favour of constructorsMarcel Admiraal
2021-01-11Merge pull request #44427 from briansemrau/fix-variant-bitand-validated-evalRémi Verschelde
Fix bitwise-and eval not updating return type
2021-01-05Merge pull request #44661 from AndreaCatania/AndreaCatania-patch-5Rémi Verschelde
Fixes: GDscript min and max are inverted
2021-01-01Update copyright statements to 2021Rémi Verschelde
Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
2020-12-28Merge pull request #44586 from madmiraal/rename-stepifyRémi Verschelde
Rename Math::stepify to snapped
2020-12-28Merge pull request #44149 from madmiraal/rename-tangent-orthogonalRémi Verschelde
Rename Vector2.tangent() to Vector2.orthogonal()
2020-12-28Rename Math::stepify to snappedMarcel Admiraal
2020-12-28Rename Rect2 and Rect2i grow_margin() to grow_side()Marcel Admiraal
2020-12-28Rename empty() to is_empty()Marcel Admiraal
2020-12-27Add helper count function to VariantGeorge Marques
To get counts of items before getting the list, which is useful for GDNative so users can pre-allocate the buffer with the correct size without having to get the list twice.
2020-12-24Fixes: GDscript min and max are invertedAndrea Catania
2020-12-23Rename Control margin to offsetMarcel Admiraal
2020-12-21Merge pull request #44472 from winterpixelgames/PR-duplicate-packedarraysRémi Verschelde
Add support for duplicate() for Packed*Array, and they are pass by ref in godot 4.0
2020-12-19Rename Rect2 and Rect2i clip() to intersection()Marcel Admiraal
2020-12-17packed*arrays are pass by ref now. support duplicate and update documentationJordan Schidlowsky
2020-12-17Fix crash parsing a serialized ReferencePedro J. Estébanez
2020-12-16Fix bitwise-and eval not updating return typeBrian Semrau
2020-12-15Merge pull request #44406 from vnen/variant-ptr-constructRémi Verschelde
Add PtrConstruct template to use in Variant constructors
2020-12-15Change template order in method_ptrcall.hGeorge Marques
To be consistent with the enum in Variant so missing types can be more easily spotted.
2020-12-15Add PtrConstruct template to use in Variant constructorsGeorge Marques
Since the PtrToArg::encode requires the value to be constructed previously. With PtrConstruct this is not required.
2020-12-10Fix object check on Variant key checkerGeorge Marques
2020-12-10Use pointer parameters in Variant function pointersGeorge Marques
Instead of references. This is needed because those function pointers are used in GDNative which needs to work with plain C, which doesn't support passing parameters by reference.
2020-12-07Improve argument names for core typesAaron Franke
2020-12-06Rename Vector2.tangent() to Vector2.orthogonal()Marcel Admiraal
2020-12-03Fix subtracting colors and quatsTomasz Chabora
2020-11-30Fix VariantInternal initialization and setting of objectGeorge Marques
- Initialize Object pointer to nullptr so it's not used by mistake. - When setting an Object check if it's a reference so refcounting works as intended.
2020-11-26[Complex Text Layouts] Implement TextServer interface. Implement Fallback ↵bruvzg
TextServer.
2020-11-25Merge pull request #43864 from vnen/fix-print-utilitiesRémi Verschelde
Fix prints and printt functions printing as errors
2020-11-25Fix prints and printt functions printing as errorsGeorge Marques
2020-11-25Core: Always enable ptrcall, remove PTRCALL_ENABLED defineRémi Verschelde
ptrcall is now also used to optimize calls in GDScript, on top of the existing use by the GDNative and Mono modules. It no longer makes sense to make it optional.
2020-11-23Initialize class/struct variables with default values in core/ and drivers/Rafał Mikrut
2020-11-23Merge pull request #43725 from vnen/gdscript-typed-vm-2Rémi Verschelde
GDScript: Typed VM Take 2
2020-11-21Add extra functions to VariantInternalGeorge Marques
- Allow getting an opaque pointer, no matter the type (for ptrcall). - Allow setting object pointer and id directly. - Allow initializing the data given a type, to allow properly setting return types on ptrcalls.
2020-11-20Variant: Merge get() and validated_get()George Marques
Since they do pretty much the same thing. The validated_get() was renamed to get() since that is more performant.