summaryrefslogtreecommitdiff
path: root/core
AgeCommit message (Collapse)Author
2022-03-07VariantUtility: Unexpose `Math::range_step_decimals`Rémi Verschelde
This method was meant only as a convenience for editor code to allow using a step of 0 to disable snapping. It was exposed by mistake when refactoring GlobalScope.
2022-03-07Merge pull request #58859 from godotengine/revert-57972-fix_has_setting4Rémi Verschelde
2022-03-07Revert "Fix ProjectSettings has_setting() when used on a overriden setting ↵Rémi Verschelde
with feature tags"
2022-03-07Protection for array operator for Vector2 / 3 in DEV buildslawnjelly
A previous PR had changed the array operator to give unbounded access. This could cause crashes where old code depended on this previous safe behaviour. This PR adds DEV_ASSERT macros for out of bound access to DEV builds, allowing us to quickly identify bugs in calling code, without affecting performance in release or release_debug editor builds.
2022-03-07Merge pull request #57930 from piiertho/bugfix/add-none-flag-to-resource-saverRémi Verschelde
2022-03-07Fix ResourceSaver::save method exposition flag parameterPierre-Thomas Meisels
enh: Add FLAG_NONE to SaverFlags in ResourceSaver to fix api inconsistency fix: flags parameter of ResourceSaver::save is now uint32_t to allow flag composition in scripts
2022-03-07Merge pull request #57812 from piiertho/bugfix/add-none-enum-global-constantsRémi Verschelde
2022-03-07bugfix: bind core enums' none valuesPierre-Thomas Meisels
2022-03-06Add a UniformSet cachereduz
* Changed syntax usage for RD::Uniform to create faster with a single RID * Converted render pass setup to use this in clustered renderer to test. This is the first step into creating a proper uniform set cache system to simplify large parts of the codebase.
2022-03-04Merge pull request #57630 from lawnjelly/bvh4_templated_checksRémi Verschelde
[4.x] BVH - Sync BVH with 3.x
2022-03-04Merge pull request #58673 from Calinou/smooth-trimesh-collision-always-settingRémi Verschelde
2022-03-02Always register the Smooth Trimesh Collision project settingHugo Locurcio
This ensures the project setting never disappears from the editor, even if the current physics engine is GodotPhysics. This also adds documentation for the Smooth Trimesh Collision project setting.
2022-03-02Remove `TTRC()` with empty stringHaoyu Qiu
Fixes "duplicate message definition" when extracting messages.
2022-03-01Fix `UndoRedo::create_action()` invalid memory usageHaoyu Qiu
2022-03-01Merge pull request #58629 from groud/fix_native_extion_init_orderRémi Verschelde
2022-03-01Merge pull request #58488 from lawnjelly/float_literals_castsRémi Verschelde
2022-02-28Reorder native extension types initialization, initializing editor lastGilles Roudière
2022-02-26Use is_zero_approx and fix spelling in CameraMatrix invertAaron Franke
2022-02-25Print every file exported with `PCKPacker.flush()`s verbose parameterHugo Locurcio
Previously, only one line per 100 files was printed. This also refactors the print statement to use Godot methods and make it more informative overall.
2022-02-24Optimize String concatenation and copy functionsBartłomiej T. Listwon
2022-02-24Float literals - fix main primitives to use real_t castinglawnjelly
Uses (real_t) casting to ensure appropriate calculations are done in 32 bit where real_t is compiled as 32 bit.
2022-02-22Merge pull request #58331 from poiati/fix-extension-registration-order-2Rémi Verschelde
2022-02-21Merge pull request #58350 from kidrigger/patch-1Rémi Verschelde
2022-02-20Fix extension registration order.Paulo Poiati
2022-02-20Resolving suggestions on comment formatting.Anish Bhobe
2022-02-20Sync controller mappings DB with SDL2 community repoRémi Verschelde
Synced with gabomdq/SDL_GameControllerDB@94b76208bc07a62a63575bc16da99411d325aac8
2022-02-20Merge pull request #58329 from Powerbyte7/patch-1Rémi Verschelde
2022-02-20Fixing iteration for extension level loading.Anish Bhobe
Extensions are not getting instantiating properly due to iteration calling the wrong levels for loading.
2022-02-19[HTML5] Add Stadia controller to databasePowerbyte7
Add web support for the Stadia controller.
2022-02-19Core: Use forward declares for Vector3/Vector3iRémi Verschelde
Add add Vector3 operator in Vector3i.
2022-02-19Merge pull request #58166 from Zylann/fix_binary_resource_with_doublesRémi Verschelde
Fix loading of binary resources with 64-bit floats
2022-02-19Merge pull request #58205 from Zylann/fix_variant_encode_with_doublesRémi Verschelde
Add missing flag when encode_variant writes math types with doubles
2022-02-18[Editor] Fix "en" editor translation detection.bruvzg
2022-02-18Merge pull request #58278 from Ev1lbl0w/fix_decompress_retcodeRémi Verschelde
2022-02-18Fix decompression functions not returning errcodesRicardo Subtil
2022-02-18Revert "Fix extension registration order."Rémi Verschelde
This reverts commit 94ef200bab8feb5024b2c64ac14daa24e0c4cc55. This broke extension loading. Fixes #58273.
2022-02-18Merge pull request #58196 from poiati/fix-extension-registration-orderRémi Verschelde
2022-02-16Add missing flag when encode_variant writes math types with doublesMarc Gilleron
2022-02-16Fix extension registration order.Paulo Poiati
2022-02-16Merge pull request #58182 from akien-mga/style-cleanup-if-semicolons-deadcodeRémi Verschelde
2022-02-16Style: Cleanup single-line blocks, semicolons, dead codeRémi Verschelde
Remove currently unused implementation of TextureBasisU, could be re-added later on if needed and ported.
2022-02-16Port existing _notification code to use switch statements (part 1/3)jmb462
2022-02-16Merge pull request #58176 from timothyqiu/find-nearestRémi Verschelde
2022-02-16Make VMap::find_nearest return -1 when emptyHaoyu Qiu
2022-02-16Fix loading of binary resources with 64-bit floatsMarc Gilleron
2022-02-15Add an `OS.get_processor_name()` methodHugo Locurcio
This method can be used to get the CPU model name. It can be used in conjunction with `RenderingServer.get_video_adapter_name()` and `RenderingServer.get_video_adapter_vendor()` for annotating benchmarks and automatic graphics quality configuration.
2022-02-14Fixed variant decoding Segmentation FaultMax
2022-02-14[ResourceUID] Use CryptoCore::RandomGenerator for IDs.Fabio Alessandrelli
2022-02-14[Crypto] Implement CryptoCore::RandomGenerator.Fabio Alessandrelli
As a cryptographically secure random generator. Internally it uses mbedTLS CTR-DRBG implementation which gets re-seeded with entropy from OS::get_entropy when needed. CryptoCore now additionally depends on `ctr_drbg.c` and `entropy.c` thirdparty mbedtls files.
2022-02-14[OS/Crypto] Add get_entropy to OS.Fabio Alessandrelli
Implemented via `BCryptGenRandom` on Windows. Implemented via `getentropy` syscall when available. Implemented via `/dev/urandom` device as a fallback. The `/dev/urandom` fallback can be disabled via the `NO_URANDOM` build flag. Note: The HTML5 version relies on emscripten file system urandom device which itself uses the Crypto API when available or the plain old not crypto-safe `Math.random()` otherwise. Restore get_entropy.