Commit Graph

1203 Commits

Author SHA1 Message Date
9f98e922da Merge pull request #106574 from MisakaRinOwO/New-Tests-for-Sprite2d
Add unit tests for Sprite2D
2025-06-05 13:11:52 +02:00
6b2674fe18 Reuse and optimize sorting logic for List, SelfList, and HashMap
Added SortList class, and updated List, SelfList, and HashMap sort methods to use it.  Sorting is done with merge sort, with an initial check to optimize for already sorted lists, and sorted lists that were appended to.
2025-06-04 10:18:22 -04:00
3ce59a5114 Added new unit tests for Sprite2D.
Added a new test file and test cases for Sprite2D. Updated test_main.cpp to include the new test file.
2025-06-02 20:47:18 -07:00
5935356962 Merge pull request #100984 from TokageItLab/bone-constraint
Implement `BoneConstraint3D` with `CopyTransform`/`ConvertTransform`/`Aim` Modifiers
2025-06-02 18:51:57 -05:00
f6f1df7d73 Add 64-bit versions of core power of 2 functions 2025-06-01 23:11:12 -07:00
4a2a95678b Implement BoneConstraint3D with Copy/ConvertTransfrom & TrackBone mods 2025-06-02 03:42:45 +09:00
kit
48624a0778 Allow TabBar drag and drop to be overridden
Add tab mouse tests
2025-05-27 11:56:37 -04:00
0f67c3e992 Merge pull request #104522 from Ivorforce/localvector-force-trivial-resize
Core: Add `resize_initialized` and `resize_uninitialized` to `Vector` and `LocalVector`
2025-05-27 09:39:27 -05:00
63dff62948 Merge pull request #100673 from RandomShaper/res_duplicate
Overhaul resource duplication
2025-05-27 09:39:25 -05:00
kit
f7c182371e Remove build_array and build_dictionary from tests 2025-05-26 13:02:01 -04:00
4cb8a0c77e Add resize_initialized and resize_uninitialized to Vector. These functions serve as replacements for resize, to make sure the caller understands whether elements need to be initialized 'by hand' after the call. 2025-05-26 18:35:41 +02:00
5df01a8c5a Merge pull request #96925 from SaNeOr/fix-#96908
Fix spaces converted to tabs in triple quote strings
2025-05-26 11:24:30 -05:00
6841b45552 Add tests for resource duplication 2025-05-26 17:05:04 +02:00
e7d31635dd Don't hard-code test path when deleting test data 2025-05-23 15:29:10 +02:00
15de1d6c35 Use Grisu2 algorithm in String::num_scientific to fix serializing 2025-05-22 09:13:16 -07:00
2bf7ac76cf Merge pull request #106456 from Repiteo/style/remove-DEBUG_METHODS_ENABLED
Style: Remove redundant `DEBUG_METHODS_ENABLED` macro
2025-05-19 08:01:35 -05:00
25ae5c8ab4 Revert "Fix #100536: Control set_position resizes offsets/anchors"
This reverts commit ca57fe1db4.
2025-05-16 14:21:18 +03:00
da9fb81e1f Merge pull request #89556 from smntic/single-char
Fix words not being selected by endpoints
2025-05-15 14:53:24 -05:00
d237e31a89 Style: Remove redundant DEBUG_METHODS_ENABLED
• Replaced with functionally identical and far more ubiquitous `DEBUG_ENABLED`
2025-05-15 13:09:41 -05:00
56cc2bb68a Merge pull request #105848 from leandro-benedet-garcia/delete_cache
Delete test cache before running it
2025-05-15 10:22:21 -05:00
3bf400ffae Move bisect to Span and deduplicate code.
Co-authored-by: Lukas Tenbrink <lukas.tenbrink@gmail.com>
2025-05-14 18:19:09 +08:00
258062e312 Fix wrong children range when duplicating node 2025-05-12 20:21:40 +02:00
0ce3d75c20 Merge pull request #93783 from aaronp64/json_stringify_performance
Improve `JSON::stringify` performance
2025-05-07 12:48:28 -05:00
f13b4b760a Improve JSON::stringify performance
- Changed stringify to call static function _stringify directly, instead of creating JSON object
- Changed colon and end_statement from String to const char * to avoid extra allocations in each _stringify call
- Pass result String reference to each _stringify call to append to instead of allocating new String in each call

These changes make JSON::stringify around 2-3x faster in most cases
2025-05-06 18:27:32 -04:00
kit
6d56d2d05e Fix tests that fail when alone 2025-05-06 13:48:16 -04:00
ed35b9e181 Delete test cache before running it 2025-05-02 14:08:32 -03:00
f45e6d7462 Merge pull request #88925 from Aziroshin/linear-curve-zero-vector-bug
[Curve3D] Fix middle point forward vector when control1=end and…
2025-05-02 09:25:28 -05:00
acf38b2292 Merge pull request #76560 from aaronfranke/node-set-string-name
Change Node `set_name` to use StringName, slightly improves performance
2025-05-02 09:25:25 -05:00
a0cc41b5ed Use libjpeg-turbo for improved jpg compatibility and speed
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2025-05-02 11:47:56 +02:00
a404b668a1 Change Node set_name to use StringName 2025-05-01 15:15:19 -07:00
1a91570ce9 [Curve3D] Fix middle point forward vector when control1=end and control2=begin; issue #88923
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2025-05-01 20:54:59 +02:00
1b1ab76a14 Add FixedVector template.
This is a high performance `Vector`-like object that can be used if the maximum number of objects is small and known, and the objects are needed only temporarily.
2025-04-30 19:14:08 +02:00
19540a0758 Avoid unnecessary version_get_uniform() calls 2025-04-28 15:05:59 +02:00
3947cbe3b2 Merge pull request #104386 from Repiteo/core/cpp-math
Core: Replace C math headers with C++ equivalents
2025-04-27 19:21:22 -05:00
91fe434a86 Always use String as StringName backing internally. 2025-04-23 14:57:03 +02:00
dd5460c32a Style: Declare inline macros as attributes 2025-04-18 12:04:40 -05:00
ad40939b6f Core: Replace C math headers with C++ equivalents
- Minor restructuring to ensure `math_funcs.h` is the central point for math functions
2025-04-16 15:49:02 -05:00
3c0652699a Merge pull request #103967 from HolonProduction/window-focus
GUI: Fix focus cycle through window
2025-04-16 10:45:17 -05:00
500a2243df Merge pull request #105428 from mason1920/array-insert-test
Test for insertion at array's size
2025-04-16 10:45:14 -05:00
00bd421089 Merge pull request #105222 from kitbdev/fix-mouse-filter-recursive-and-rename
Fix and rename mouse filter recursive behavior and focus mode recursive behavior
2025-04-16 10:45:12 -05:00
6b9641d364 Fix focus cycle through window 2025-04-15 20:24:32 +02:00
692a244713 Test for insertion at array's size 2025-04-15 12:08:54 -04:00
501c64a12f Remove auto misuse cases. 2025-04-14 16:54:57 +03:00
0d267e7b1e Core: Add dedicated BitField template 2025-04-11 11:53:26 -05:00
717df3ee88 Merge pull request #105249 from Repiteo/core/math-defs-namespace
Core: Use `Math` namespace for constants
2025-04-11 09:51:04 -05:00
cad0cd94ef Merge pull request #105225 from bruvzg/ds_gdsoft
Change `DisplayServerMacOS` from `GDCLASS` to `GDSOFTCLASS`. Add `GDSOFTCLASS` to other display servers.
2025-04-10 16:53:42 -05:00
94282d88f9 Core: Use Math namespace for constants 2025-04-10 16:29:30 -05:00
bf963e767e Add Options, Functions and Settings to convert Node-Names and Strings to kebab-case
- refactored and renamed String::_camelcase_to_underscore to String:_separate_compound_words
- refactored String::to_snake_case to work with the refactored String::_separate_compound_words
- created char_utils::is_hyphen to catch all hyphen variants in kebab-case conversion
- created String::to_kebab_case using the new String::_separate_compound_words
- created corresponding Documentation in String and StringName
- simplified both switch statements in EditorNode and ProjectDialog
- added new kebab-casing Option for Node Names in ProjectSettings
- added missing camelCase Options to Scene- and Node-Names in ProjectSettings
- simplified Mono RuntimeInterop Functions
- hooked up the ConnectionsDialog
- created additional Unit Tests
2025-04-10 21:22:21 +02:00
cade15a163 Merge pull request #92475 from AThousandShips/string_replace_char
Add `String::replace_char(s)` methods for performance and convenience
2025-04-10 10:18:16 -05:00
6fce829fce Merge pull request #105007 from Aziroshin/dev/aziroshin/comment-after-region-not-folding-102382
[CodeEdit] Fix folding for comments mixed with code region tags.
2025-04-10 10:18:14 -05:00