1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-22 15:06:45 +00:00
Commit Graph

8793 Commits

Author SHA1 Message Date
Rémi Verschelde
62d22ffa6b Merge pull request #98216 from pafuent/fixing_log_rotation
Fix file logging log rotation
2025-02-11 10:54:01 +01:00
Pablo Andres Fuente
d1338528f9 Fix file loggin log rotation
Fixes #97066

`RBSet` were used on `RotatedFileLogger` because it guarantees that
iterating it is done via `operator<`. This is important because
`RotatedFileLogger` depends on this behavior to delete the oldest log file.
On #61194 `HashSet` was added and all `RBSet` uses were replaced by
`HashSet`.
When that happened, the iteration in order is guaranteed to be the insertion
order, wich made that `RotatedFileLogger` delete the newest log file.
As a bonus, I added unit test for `RotatedFileLogger` and `CompositeLogger`.
2025-02-10 21:57:07 +01:00
Rémi Verschelde
261e7d32d3 Merge pull request #102649 from bruvzg/fb_loc
Use fallback locale from project settings instead of hardcoded "en" for TextServer.
2025-02-10 10:50:02 +01:00
Pāvels Nadtočajevs
e9fd760357 Use fallback locale from project settings instead of hardcoded "en" for TextServer. 2025-02-10 08:55:50 +02:00
Hilderin
9457666bba Fix accessing UID before first scan 2025-02-08 20:04:32 -05:00
Lukas Tenbrink
e34f1f504c Use std::size instead of sizeof(a) / sizeof(a[0]) pattern throughout the codebase. 2025-02-07 14:57:48 +01:00
Pāvels Nadtočajevs
1bc86c2626 Fix PackedStringArray.to_byte_array() to return UTF-8 encoded data instead of pointers. 2025-02-07 10:19:32 +02:00
Rémi Verschelde
161abe7bdd Merge pull request #102489 from KoBeWi/uid_file_factory_regulations
Improve UID file creation condition
2025-02-07 01:39:55 +01:00
kobewi
65509ae4ff Improve UID file creation condition 2025-02-06 17:08:00 +01:00
bruvzg
a6ff518763 Add ZWSP to the list of space characters. 2025-02-06 10:31:32 +02:00
Pāvels Nadtočajevs
b50d9742c2 Fix is_valid_float, Variant parser, Expression parser, script highlighter, and TextServer not handing capital E in scientific notation. 2025-02-05 18:39:40 +02:00
bruvzg
3be46a69c4 Fix uppercase B and X parsing in the integer literals. 2025-02-05 16:02:06 +02:00
David Snopek
be81b0685f Prevent instantiating classes that aren't exposed 2025-02-04 17:09:37 -06:00
David Snopek
7095431aa7 GDExtension: Add interface functions for Object::set_script_instance() 2025-02-04 14:47:06 -06:00
Thaddeus Crews
acddf31c39 Merge pull request #101489 from RandomShaper/optimize_classnames_enumeration
Optimize classnames enumeration
2025-02-04 09:03:59 -06:00
A Thousand Ships
e825085978 [Core] Add is_same to types that have float components
Compares `NaN` as equal.

Added to:
* `AABB`
* `Basis`
* `Color`
* `Plane`
* `Projection`
* `Quaternion`
* `Rect2`
* `Transform2D`
* `Transform3D`
* `Vector2`
* `Vector3`
* `Vector4`

And added as a method in `Math`
2025-02-03 19:25:50 +01:00
A Thousand Ships
46b6acdabb [Core] Expose Packed*Array::erase 2025-02-03 19:25:09 +01:00
Pāvels Nadtočajevs
e6e108d091 Implement get_length() for pipes. 2025-02-03 16:50:00 +02:00
Thaddeus Crews
4fcd9598de Merge pull request #102144 from Cwazywierdo/get-euler-epsilon
Core: Fix `Basis::get_euler` incorrectly simplifying rotations in some cases.
2025-02-03 08:15:42 -06:00
Thaddeus Crews
699237d243 Merge pull request #102131 from dsnopek/classdb-bind-method-custom-leak
Fix memory leak when `ClassDB::bind_method_custom()` fails
2025-01-30 11:39:04 -06:00
lawnjelly
5c6d7bfb98 Change VariantUtility to prevent undef print_verbose
Changes the `VariantUtility` function from `print_verbose` to `_print_verbose`, eliminating the need for undefining the `print_verbose` macro, which caused compilation problems.
2025-01-30 10:29:11 +00:00
Thaddeus Crews
424487869e Merge pull request #90726 from Chubercik/ucaps-exorcism
Update `ucaps.h` to contain proper case matchings
2025-01-29 17:45:14 -06:00
Adam
d56cbd374b Fix Basis::get_euler incorrectly simplifying rotations in some cases. 2025-01-29 16:13:29 -06:00
Lukas Tenbrink
60443b1ae6 Optimize ProjectSettings::get_setting_with_override / GLOBAL_GET by avoiding repeated dict lookups. 2025-01-29 14:11:15 +01:00
Jakub Marcowski
104857687c Update ucaps.h to contain proper case matchings 2025-01-29 12:37:33 +01:00
Pedro J. Estébanez
318af42020 Include more attributes in the global class names cache 2025-01-29 09:39:50 +01:00
Thaddeus Crews
3c80c14092 Merge pull request #101924 from adamscott/game-editor-non-cached-mouse-mode
Delegate handling `mouse_mode` to the `DisplayServer`
2025-01-28 16:08:56 -06:00
David Snopek
e904c0c014 Fix memory leak when ClassDB::bind_method_custom() fails 2025-01-28 11:10:35 -06:00
Adam Scott
47f553ae0b Delegate to the DisplayServer the task of handling mouse_mode
- Add `MOUSE_MODE_MAX` and various index checks
2025-01-28 11:22:27 -05:00
Thaddeus Crews
1aed2f577e Merge pull request #100904 from kiroxas/fixVariantMSVCWorkaround
Fix MSVC Variant Workaround
2025-01-28 09:03:33 -06:00
Hugo Locurcio
daa6198925 Add built-in GUI to display license notices
Press Ctrl/Cmd + Shift + L (`ui_toggle_licenses_dialog` built-in action)
to show/hide the notices dialog.

The dialog can be shown via script using
`SceneTree.licenses_dialog_visible = true|false`.

Co-authored-by: MewPurPur <mew.pur.pur@abv.bg>
2025-01-27 18:35:04 +01:00
Jakub Marcowski
10485764a7 Automate generation of the char_range.inc file
Co-authored-by: Danil Alexeev <dalexeev12@yandex.ru>
2025-01-23 19:25:59 +01:00
Thaddeus Crews
376b1c9de9 Merge pull request #101752 from MTareqAzim/fix-resource-loader-cache-uid
Fix ResourceLoader.has_cached() and ResourceLoader.get_cached_ref() not handling UIDs.
2025-01-22 16:32:24 -06:00
Tareq Anuar
9014cdb596 Fix ResourceLoader.has_cached() and ResourceLoader.get_cached_ref() not handling UIDs. 2025-01-20 20:36:23 +08:00
Silc Lizard (Tokage) Renew
27e23280c5 Fix Quaternion arc constructor to check dot & Add test for same vec3s 2025-01-20 18:16:53 +09:00
Travis Wrightsman
72856f304f Make COPYRIGHT.txt compliant with specification
Also fix license header generation by skipping over the new Comment
field in the COPYRIGHT.txt header stanza.
2025-01-17 13:35:15 -08:00
Lukas Tenbrink
512abc38b2 Remove implicit conversions from String, Char16String and CharString to data pointers. Make conversions to StrRange implicit to aid transition. 2025-01-17 17:31:58 +01:00
Thaddeus Crews
49481c12bc Merge pull request #98792 from MJacred/fix_remove_joy_mapping
Fix `Input::remove_joy_mapping`
2025-01-17 10:16:44 -06:00
Thaddeus Crews
ce88021aa0 Merge pull request #101606 from Ivorforce/stringname-lock-late
Lock the `StringName::mutex` after hashing the string, to spend less time hoarding it unnecessarily.
2025-01-16 17:18:04 -06:00
Thaddeus Crews
0c0c45d695 Merge pull request #99494 from RandomShaper/rerefix_res_unrecog
ResourceLoader: Report appropriate error code when no suitable loader is found
2025-01-16 17:18:03 -06:00
Thaddeus Crews
ec85334a84 Merge pull request #90425 from tracefree/load-pack-fix
Fix "res://" being replaced by resource packs in the editor and on Android
2025-01-16 17:18:02 -06:00
Thaddeus Crews
9bcf5ac9f7 Merge pull request #101560 from darksylinc/matias-union-order
Fix union order to simplify empty initializers
2025-01-16 17:17:53 -06:00
Thaddeus Crews
c4f7192a86 Merge pull request #101594 from BlueCube3310/image-channel-mask-fix
Fix certain channel masks for Texture previewer
2025-01-16 17:17:46 -06:00
ialex32x
6b225ebe24 Fix index check in MethodBind::get_argument_type 2025-01-16 15:47:50 +08:00
Lukas Tenbrink
dbf189e28f Lock the StringName::mutex after hashing the string, to spend less time hoarding it unnecessarily. 2025-01-15 21:20:48 +01:00
Adam Scott
33e16435f5 Replace some problematic uses of String::num to String::num_int64 2025-01-15 12:51:51 -05:00
BlueCube3310
271067eb2b Fix certain channel masks for Texture previewer 2025-01-15 18:40:53 +01:00
Rie
d17ce4c37e Fix "res://" being replaced by resource packs in the editor and on Android 2025-01-15 11:20:46 +01:00
Matias N. Goldberg
7b2f1e1d09 Fix union order to simplify empty initializers
This is a followup to PR #101344 (commit
0e06eb80bc).

Some of them were not an issue because Godot was initializing all
members, but they were "fixed" just in case since it could become a
problem in the future.

Valgrind was specifically complaining about HashMapData &
GlobalPipelineData.
2025-01-14 19:05:01 -03:00
MJacred
8e75fae49e Ue an array removed_idx 2025-01-14 12:09:16 +01:00