1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-31 18:41:20 +00:00

347 Commits

Author SHA1 Message Date
Filipe Alexandre Francisco Costa
ca57fe1db4 Fix #100536: Control set_position resizes offsets/anchors
The set_position method computes the anchors/offsets to match a
rectangle at the given position with size "size_cache". However, when
the Control's combined minimum size is larger than the size obtained
through the offsets and anchors, "size_cache" is set to be as large as
the combined minimum size. Therefore, when position is set while the
combined minimum size is larger than the rectangle given by the anchors
and offsets, it would resize these two fields, which would then stop
the Control from shrinking when its combined minimum size decreased. To
fix this, set_position now uses the size given by the offsets and
anchors instead of the "size_cache" field. This way, the rectangle
denoted by the offsets and anchors is simply moved, without being
resized, enabling the Control to shrink automatically when its combined
minimum size decreases. I also added a test case to ensure that the
Control shrinks correctly after setting its position while it has a
larger custom minimum size than the one obtained through the offsets
and anchors.
2025-03-31 08:50:00 +01:00
A Thousand Ships
5cc0539961 [Navigation] Create a dedicated 2D navigation server
* Add a dedicated 2D server
* Create dedicated tests
* Split performance metrics between 2D and 3D
* Rename the 3D only server module
2025-03-29 12:10:50 +01:00
Rémi Verschelde
7598b08ec2 Merge pull request #104709 from kitbdev/remove-macro-testfontfile
Remove macros from FontFile test case
2025-03-28 17:30:52 +01:00
Rémi Verschelde
e8bc75f056 Merge pull request #103373 from YeldhamDev/build_remove_physics
Allow to compile templates without physics servers
2025-03-28 17:30:03 +01:00
kit
3bba00a4b3 Remove macros from FontFile test 2025-03-28 11:28:47 -04:00
Michael Alexsander
5ad414d046 Allow to compile templates without physics servers 2025-03-28 11:00:44 -03:00
kobewi
75881f8322 Use initializer list in Arrays 2025-03-26 18:38:15 +01:00
Thaddeus Crews
f810c74c19 Merge pull request #104221 from Teschnique/fix-issue-100590
Fix tangent baking for curves when cubic derivatives are 0
2025-03-24 10:01:02 -05:00
Teschnique
a6dc345415 Fix tangent baking for curves where the derivative evaluates to 0 due to
collinear control points.
2025-03-21 23:02:24 -07:00
Pāvels Nadtočajevs
2fb5059c63 [TextEdit] Use actual indentation offset instead of space width for wrapped lines. 2025-03-19 12:50:43 +02:00
Thaddeus Crews
75f131e047 Merge pull request #99632 from wheatear-dev/augment-tests-option-button
Augment unit tests for `OptionButton`
2025-03-11 09:34:44 -05:00
Thaddeus Crews
324512e11c Style: Replace header guards with #pragma once 2025-03-07 17:33:47 -06:00
Thaddeus Crews
47761b1bbe Merge pull request #81503 from matorin57/font-tests
Add getter tests for dynamic fonts
2025-03-07 15:12:27 -06:00
Pablo Andres Fuente
5775d29ad8 Fix SCRIPT ERROR/ERROR/WARNING on test output
Also "fixing" some GDScript completion tests which
where named wrongly.
2025-03-06 13:44:48 +01:00
Thaddeus Crews
a1e2dd15af Merge pull request #101077 from Rindbee/fix-ui-navigation-break
Fix ui navigation break
2025-03-05 12:07:56 -06:00
girdenis-p
577ee919d4 Add tests for control to test anchoring and minimum size 2025-02-13 16:08:39 +00:00
DESKTOP-UT43QTQ\Garrigan-Desktop
2bfca8e9c2 Added getter tests for dynamic fonts 2025-02-12 18:45:44 -06:00
风青山
343b37dfc1 Add unit tests for control focus navigation
Users can navigate focus between controls using `ui_focus_next` or
`ui_focus_prev actions`. Add unit tests for these behaviors.
2025-01-29 20:51:02 +08:00
kit
8274e64402 Fix TextEdit breakpoint hover not hiding 2025-01-16 10:42:54 -05:00
Nazarii
8bfb5d74b3 Use LocalVector for Curve and Gradient 2025-01-09 14:25:21 +02:00
Aarni Koskela
f134769506 Fix various typos
* Add TODO notes for typos that should be fixed for 5.0

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2025-01-08 14:47:42 +02:00
Julian
5727eda0e1 GLTFDocument test case 2025-01-06 15:53:33 -05:00
ze2j
97b093617d Follow-up of ArrayMesh::surface_remove addition 2024-12-20 10:53:43 +01:00
Thaddeus Crews
b715fabd70 Merge pull request #76371 from ze2j/array_mesh_surface_remove
Add `ArrayMesh::surface_remove`
2024-12-19 19:59:56 -06:00
kit
63a90b3dd8 Add tests for SplitContainer 2024-12-17 18:16:52 -05:00
Thaddeus Crews
2b41a217d2 Merge pull request #100259 from Sauermann/proposal-right-click-cancel-drag
Allow canceling drag-and-drop with right mouse button
2024-12-11 17:35:39 -06:00
Markus Sauermann
4d6a6b21e2 Allow canceling drag-and-drop with right mouse button
This is a small usability enhancement, that allows users to cancel
drag-and-drop without the need to press the escape key on the keyboard.
2024-12-11 00:13:54 +01:00
Rémi Verschelde
2153a60425 Revert "Avoid duplicating signals from scene instances into packed scenes"
This partially reverts commit 8a42e3d3ef.

Comment improvements and the test case were kept, with one part commented out.
2024-12-10 10:42:58 +01:00
Thaddeus Crews
e06f699354 Merge pull request #99886 from ZhiyiHu93/update-sky-tests
Add unit tests for Sky
2024-12-09 14:33:20 -06:00
Zhiyi Hu
1e62c7f53e Add unit tests to Sky 2024-12-06 10:31:17 -05:00
DeeJayLSP
eaa0418deb TestAudioStreamWAV: use runtime load instead of importer 2024-12-04 18:44:48 -03:00
Rémi Verschelde
8d3fc48abf Merge pull request #97521 from pafuent/enhance_scroll_container_focus
Add a focus border on `ScrollContainer`
2024-11-29 22:46:09 +01:00
Rémi Verschelde
5d462ee4c5 Merge pull request #67857 from anvilfolk/extended-curve
Extend Curve to allow for domains outside of [0, 1].
2024-11-29 22:45:19 +01:00
cixil
8a42e3d3ef Avoid duplicating signals from scene instances into packed scenes 2024-11-29 18:29:08 +01:00
Thaddeus Crews
3edf8b91e9 Merge pull request #98489 from Flarkk/fix_project_position
Fix Camera3D::project_position() when depth=zfar
2024-11-27 10:47:07 -06:00
ze2j
97e0b43faa Add ArrayMesh::surface_remove 2024-11-27 13:46:15 +01:00
Edward Moulsdale
fe416c8046 Augment unit tests for OptionButton 2024-11-24 16:23:50 +00:00
Pablo Andres Fuente
86ea0127a3 Add a focus border on ScrollContainer
Also added new unit tests for `Control`.

Co-authored-by: ator-dev <dominic.codedeveloper@gmail.com>
2024-11-23 23:54:38 -03:00
Thaddeus Crews
32b4f40cc8 Merge pull request #99131 from MarcusAahl/my-testing-branch
Add basic tests for Fontfile
2024-11-19 15:20:17 -06:00
marcus åhl
c636c86f65 Basic Fontfile tests 2024-11-19 11:56:26 +01:00
Thaddeus Crews
d72112ba0a Merge pull request #98816 from arkology/to-infinity-and-beyond
Improve `TextureProgressBar.set_radial_initial_angle()` by removing loops
2024-11-18 09:23:28 -06:00
arkology
d692b7bdde Improve set_radial_initial_angle by removing loops
Replace two while loops with fposmodp.
Document radial_initial_angle wrapping.
Add testcases for set_radial_initial_angle()
2024-11-14 20:20:20 +03:00
Thaddeus Crews
2ed6d12652 Merge pull request #97363 from reduz/deterministic-gen-suberesources-id
Allow passing UID to importer
2024-11-11 14:18:30 -06:00
Juan
fe34c45d2a Allow passing UID to importer
This helps, for importers spitting out new resources to the res://
filesystem to actually hash them to generate deterministic UIDs.

This PR also fixes the determinism for translations.
2024-11-11 15:22:42 +01:00
Thaddeus Crews
925b690c98 Core: Integrate Ref::instantiate where possible 2024-11-10 12:41:26 -06:00
Thaddeus Crews
bb5f390fb9 Style: Apply clang-tidy fixes (superficial)
• `modernize-use-bool-literals`, `modernize-use-nullptr`, and `readability-braces-around-statements`
2024-11-04 12:11:14 -06:00
ocean (they/them)
6c65213487 Extend Curve to allow for arbitrary domains 2024-11-02 08:25:40 -04:00
Thaddeus Crews
4aad050067 Merge pull request #97157 from pafuent/fixing_tree_item_get_prev_wrap
Fix `TreeItem` `get_prev*` methods when `p_wrap` is `true`
2024-10-25 13:03:42 -05:00
Florent Guiocheau
771e561cdd Fix Camera3D::project_position() when depth=zfar 2024-10-24 22:36:35 +02:00
Rémi Verschelde
2d8bfab47c Merge pull request #97255 from kitbdev/test-tabs
Fix TabBar initialization issue and add tests
2024-10-04 11:21:33 +02:00