Age | Commit message (Collapse) | Author |
|
* is_equal_approx
* normalize
* length_squared
* posmod
* posmodv
(cherry picked from commit 6cd8e706fae5dacc908efd1a823e3447e01bfa56)
|
|
(cherry picked from commit 10f385fb792dc74ffb8be221fec88ba9ef7aaa25)
|
|
(cherry picked from commit c8c43997c79b1488ca823af6c4ad4fd12f8671d4)
|
|
Incorrectly hashed floats as single precision
(cherry picked from commit e6a9e0cdec2c309f9201d0ab475616c51010b531)
|
|
Make max() and min() global functions only accept numbers
|
|
|
|
The behavior for those are not well defined for non-numeric arguments.
To avoid confusion the other types are forbidden.
|
|
|
|
Fix `Variant::in()` error on invalid `evaluate`
|
|
|
|
Co-authored-by: Hein-Pieter van Braam-Stewart <hp@tmm.cx>
|
|
|
|
Sync C# Array with Core
|
|
- Consider PackedArrays non-shared since they are copied on C++/script
boundaries.
- Add error messages in the analyzer when assigning to read-only
properties.
- Add specific error message at runtime when assignment fails because
the property is read-only.
|
|
Finally do the childs -> children rename too.
|
|
|
|
|
|
- Add `AddRange` method.
- Add `Fill` method.
- Add `Max` and `Min` methods.
- Add `PickRandom` method.
- Add `Reverse` method.
- Add `RecursiveEqual` method.
- Add `Sort` method.
- Add `Slice` and `GetSliceRange` methods.
- Add `IndexOf` overload that takes an index parameter.
- Add `LastIndexOf` method.
- Add `BinarySearch` method.
- Add/update documentation.
|
|
Handle gltf binary images
|
|
[ 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.
|
|
|
|
|
|
|
|
|
|
This makes the `Array` indexer show as returning `Variant` instead of `void` in the documentation.
|
|
GDScript: Fix typing of iterator in for loop
|
|
|
|
|
|
Allow to escape closing brackets in CFG tags
|
|
* 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.
|
|
GDScript: Begin making constants deep, not shallow or flat
|
|
Fix for comparisons with PackedArrays
|
|
Properly report Callable bound arguments
|
|
Fixes #63213
Adds a function: Callable::get_amount_of_arguments_bound() to query this in callables. Exposed to the engine API.
|
|
* 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.
|
|
|
|
|
|
Allow binding Callable arguments from an array
|
|
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])
```
|
|
Fixes #62706.
Code is commented instead of removed to clarify why they should not be re-added.
|
|
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".
|
|
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.
|
|
|
|
Refactor SPIR-V reflection into a generic RenderingDevice feature
|
|
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.
|
|
|
|
Rename all gdnative occurences to gdextension
|
|
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
|
|
GDScript: Unify StringName and String
|
|
|