Commit graph

72967 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
Thaddeus Crews
e585e6a3eb
Merge pull request #104797 from beicause/rm-deprecated-version-macro
Android: Replace the deprecated version macro
2025-03-30 09:06:03 -05:00
Thaddeus Crews
3b1a481f13
Merge pull request #97843 from detomon/optimize-a-star-grid-2d-solve
Reduce allocations when solving path in `AStarGrid2D`
2025-03-30 09:06:02 -05:00
Thaddeus Crews
e471465d39
Merge pull request #104370 from BrotherShort/no-arrow-no-root-offset
Tree: Fix offset relationship lines with Hide Folding
2025-03-30 09:06:02 -05:00
Thaddeus Crews
6fed7a3000
Merge pull request #104745 from BlueCube3310/rgb565-typo-fix
Image: Fix typo at `_set_color_at_ofs` with `FORMAT_RGB565`
2025-03-30 09:06:01 -05:00
Thaddeus Crews
bc5c739ff8
Merge pull request #104708 from Alex2782/tree_cleanup
`Tree`: apply comment style guidelines and remove unused variables.
2025-03-30 09:06:00 -05:00
Thaddeus Crews
ac13efc822
Merge pull request #101443 from Repiteo/ci/replace-pytest
CI: Replace pytest with pre-commit hook
2025-03-30 09:06:00 -05:00
Thaddeus Crews
4b796b068a
Merge pull request #104768 from Rudolph-B/Issue-104763
Fix corrupted negative values for signed BC6
2025-03-30 09:05:59 -05:00
Thaddeus Crews
8b2952a71c
Merge pull request #101504 from AThousandShips/nav_split_new
[Navigation] Create a dedicated 2D navigation server
2025-03-30 09:05:43 -05:00
LuoZhihao
138e990262 Replace the deprecated version macro 2025-03-30 18:00:19 +08:00
Thaddeus Crews
32de6285a8
SCons: Modernize shader builders 2025-03-29 11:51:54 -05:00
BlueCube3310
647b99c6d0 Image: Fix typo at _set_color_at_ofs with FORMAT_RGB565 2025-03-29 17:51:31 +01:00
Thaddeus Crews
adc63c6149
CI: Replace pytest with pre-commit hook 2025-03-29 11:40:36 -05:00
Rudolph Bester
040cc3d5ec Fix corrupted negative values for signed BC6 2025-03-29 17:26:54 +02:00
Thaddeus Crews
ba3482926d
Merge pull request #104444 from Delsin-Yu/fix-disabled-recursive-behavior-not-applied-on-ready
[GUI] Fix reparenting control does not update recursive mode cache properly
2025-03-29 10:16:35 -05:00
Thaddeus Crews
152c14b053
Merge pull request #104597 from bruvzg/path_check
Implement `DirAccess.is_equivalent` method.
2025-03-29 10:16:34 -05:00
Thaddeus Crews
ff1858ad2c
Merge pull request #102101 from KoBeWi/2d_3d_skrypt_gra_biblioteka_zasobów
Mark main screen plugin names for translation
2025-03-29 10:16:33 -05:00
Thaddeus Crews
780cf03051
Merge pull request #104556 from Ivorforce/string-extend-instead-of-parse
Use `append_` instead of `parse_` for `String` methods.
2025-03-29 10:16:33 -05:00
Thaddeus Crews
6bab3c07fc
Merge pull request #104746 from zaevi/fix_color_html
Fix reversed hex order in `Color::to_html`
2025-03-29 10:16:32 -05:00
Thaddeus Crews
08615299b7
Merge pull request #104744 from Repiteo/scons/ensure-mingw-fallback
SCons: Ensure MinGW as fallback if missing MSVC
2025-03-29 10:16:31 -05:00
Thaddeus Crews
afe5b8991b
Merge pull request #104741 from BlueCube3310/image-invisible-impr
Image: Improve `is_invisible` function
2025-03-29 10:16:31 -05:00
Thaddeus Crews
7a28334596
SCons: Ensure MinGW as fallback if missing MSVC 2025-03-29 10:14:20 -05: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
DE YU
04608fae4a [GUI] Fix an issue where setting a control's recursive mode to disabled does not work on ready. 2025-03-29 06:34:11 +08:00
Zae
e7f7823236 Fix reversed hex order in Color::to_html 2025-03-29 06:06:09 +08:00
BlueCube3310
dd47d9173e Image: Improve is_invisible function 2025-03-28 22:42:37 +01:00
Alexander Hartmann
b96e8d5886 Tree: apply comment style guidelines and remove unused variables.
Co-Authored-By: Tomasz Chabora <2223172+KoBeWi@users.noreply.github.com>
Co-Authored-By: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2025-03-28 18:03:39 +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
fd02ff8d02
Merge pull request #104703 from bruvzg/loc_dir_icons
Fix updating editor icons on translation change.
2025-03-28 17:30:49 +01:00
Rémi Verschelde
1a367f3a68
Merge pull request #104685 from bruvzg/rtl_vpad
[RTL] Improve vertical padding.
2025-03-28 17:30:44 +01:00
Rémi Verschelde
be57309c30
Merge pull request #104658 from m4gr3d/fix_composition_layer_setup
Ensure the composition layer is registered when the layer viewport is updated
2025-03-28 17:30:40 +01:00
Rémi Verschelde
afc7398c2b
Merge pull request #104616 from ibrahn/init-cmd-q-pending-and-gles3-skymatdata
Fix uninitialized member vars in CommandQueueMT and RasterizerSceneGLES3
2025-03-28 17:30:37 +01:00
Rémi Verschelde
b4edd92266
Merge pull request #104604 from KoBeWi/why_new
Remove New prefix from EditorResourcePicker
2025-03-28 17:30:32 +01:00
Rémi Verschelde
e3063f5675
Merge pull request #104590 from bruvzg/tex_decomp_load
Load decompressable texture format if no supported one is found.
2025-03-28 17:30:28 +01:00
Rémi Verschelde
ab5a3521f9
Merge pull request #104561 from Calinou/doc-csgshape3d-deferred-updates
Document CSGShape3D updates being deferred until the next frame
2025-03-28 17:30:23 +01:00
Rémi Verschelde
9ecc59f172
Merge pull request #104465 from lodetrick/action-map-tooltips
Add tooltips to OpenXR Action Map UI
2025-03-28 17:30:19 +01:00
Rémi Verschelde
1298e7078d
Merge pull request #104061 from a-johnston/better_no_query_handling
Improve default/no query quick open dialog behavior
2025-03-28 17:30:14 +01:00
Rémi Verschelde
ddae331c79
Merge pull request #103853 from aaronfranke/gltf-fix-light-color-space
GLTF: Fix wrong color space for GLTFLight on export
2025-03-28 17:30:09 +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
Rémi Verschelde
1e595a0aa7
Merge pull request #103053 from Peelep/preview-sun-env-undoredo
Add UndoRedo actions to preview sun/environment popup
2025-03-28 17:29:58 +01:00
Rémi Verschelde
05c207039f
Merge pull request #100849 from ColinSORourke/string-docs-clarify
Clarify ambiguous String comparison methods documentation
2025-03-28 17:29:55 +01:00
Rémi Verschelde
b12258bd22
Merge pull request #99897 from aaronfranke/editor-top-nodes
Clarify API for top selected nodes in EditorSelection and make public
2025-03-28 17:29:51 +01:00
Rémi Verschelde
be1333dc0a
Merge pull request #97002 from bruvzg/mbchar_iconv
Add methods to decode/encode multibyte encodings.
2025-03-28 17:29:47 +01:00
Rémi Verschelde
3b90bb56ad
Merge pull request #89782 from KoBeWi/stdArrayList
Use initializer list in Arrays
2025-03-28 17:29:40 +01:00
bruvzg
48bfe13e4f
Add methods to decode/encode multibyte encodings. 2025-03-28 17:32:34 +02:00
kit
3bba00a4b3 Remove macros from FontFile test 2025-03-28 11:28:47 -04:00
BrotherShort
f660cdb7cf
Tree: Fix offset relationship lines with Hide Folding 2025-03-28 15:05:24 +01:00
Michael Alexsander
5ad414d046
Allow to compile templates without physics servers 2025-03-28 11:00:44 -03:00
Rémi Verschelde
b13c96b097
Merge pull request #104713 from aaronfranke/gltf-post-convert
GLTF: Fix `export_post_convert` not running for multi-root scenes
2025-03-28 14:35:03 +01:00
Rémi Verschelde
2ba5168bec
Merge pull request #104711 from shoonny/create_root_node_name_casing
Fix create root node dialog to follow preferred node name casing
2025-03-28 14:35:00 +01:00