1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00
Commit Graph

74331 Commits

Author SHA1 Message Date
clayjohn
c6c06a966a Allow chunk validator to wrap around in RID_Alloc so that we do not need to crash once we have made 2^31 allocations 2025-04-18 00:06:53 -07:00
clayjohn
6fede0b951 Optimize SkyMaterials by removing uses of acos and simplifying logic
The results looks almost the same and run much faster.
2025-04-17 22:50:11 -07:00
Logan Detrick
c67736e6a7 Replace TextEdit with EditorSpinSlider for the Action Set's priority 2025-04-17 12:52:51 -07:00
Matias N. Goldberg
96bad4ad04 Fix UBSAN alignment issues in the render graph
Follow up to PR #100325
2025-04-17 14:40:06 -03:00
Adam Scott
f6efd88cda Add {c,cpp}_compiler_launcher options 2025-04-17 12:27:44 -04:00
smix8
39db6c1d3c Fix GridMap OctantKey cell rasterization
Fixes GridMap OctantKey cell rasterization that had octants at different sizes due to faulty integer division.
2025-04-17 17:57:34 +02:00
Michael Alexsander
81429da4ab Fix missing gdb.printing import for the pretty print script 2025-04-17 11:58:55 -03:00
Chaosus
5a14ab7c39 [Shaders] Allow constants and expressions in hint_range 2025-04-17 17:43:01 +03:00
Hugo Locurcio
d403878a71 Document Vector2.from_angle() not always returning a normalized vector 2025-04-17 16:33:57 +02:00
Thaddeus Crews
09ea7bc6a3 Merge pull request #105400 from bruvzg/ov_cleanup
Remove old oversampling property from font importers.
2025-04-17 09:14:25 -05:00
Thaddeus Crews
03a44c42dd Merge pull request #105484 from Wierdox/normalize_description_of_list_directory
Normalize description of `ResourceLoader.list_directory()`
2025-04-17 09:14:25 -05:00
Thaddeus Crews
5df4a0ae3d Merge pull request #105291 from jaydensipe/rename-editor-setting-check-for-update
Rename editor setting `Engine Version Update Mode` to `Check for Updates`
2025-04-17 09:14:24 -05:00
Thaddeus Crews
20b2674cfd Merge pull request #105481 from bruvzg/rtl_title_sort
Fix incorrect title bar sorting in RTL layout.
2025-04-17 09:14:23 -05:00
Thaddeus Crews
98aced4e65 Merge pull request #99768 from dsnopek/openxr-vulkan-foveated-rendering
OpenXR: Use the `XR_FB_foveation_vulkan` extension to get the density map for VRS
2025-04-17 09:14:23 -05:00
Hugo Locurcio
90e3926424 Fix light theme gizmo icons in the 3D editor appearing too dark 2025-04-17 14:29:54 +02:00
LuoZhihao
b0348d0e58 C#: Avoid StringName allocation in GodotObject.Free 2025-04-17 20:10:34 +08:00
Wierdox
0689522e61 Normalize description of ResourceLoader.list_directory() 2025-04-17 00:09:44 -07:00
Max Piepenbrink
cf8455c52d Fix regression causing jittery canvas transforms
This PR https://github.com/godotengine/godot/pull/104451 introduced
a tricky regression. Canvas item transforms could risk not being
updated for multiple frames due to the conditional on the line
in this commit. Before the "approx_pos|size_changed" fix, the
transform would get updated incidentally either way. But now there's
a gap where (pos_changed && !size_changed) may not be true for a few
frames and there's nothing else left to trigger a transform update.

The fix is quite simple, for updating the canvas item transform
we remain trigger happy around position changes, but respect the
approx_size_changed.
2025-04-16 23:59:05 -07:00
Pāvels Nadtočajevs
5355fcae62 Fix incorrect title bar sorting in RTL layout. 2025-04-17 09:31:14 +03:00
clayjohn
941ad15724 Increase chunk limit for known problematic RID_Owners.
The default limit is fine for most RID_Owners but 3d instances, CanvasItems, and physics bodies need a higher limit.

There is a small memory cost to increasing the limit, so it should only be done where needed.
2025-04-16 17:03:47 -07:00
Jayden Sipe
5f7e9a9198 Rename editor setting to Check for Updates 2025-04-16 18:04:30 -04:00
Thaddeus Crews
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
Thaddeus Crews
c5c1cd4440 Merge pull request #105453 from reduz/signals-thread-safe
Add thread safety to Object signals
2025-04-16 15:39:22 -05:00
Thaddeus Crews
6448ddf37e Merge pull request #105460 from Zylann/basis_abs
Use `Math::abs` to avoid ambiguity with integer abs
2025-04-16 15:39:22 -05:00
Thaddeus Crews
4d55d9865b Merge pull request #105304 from KoBeWi/≥
Fix `exp_edit` description
2025-04-16 15:39:21 -05:00
Marc Gilleron
5e6df6a196 Use Math::abs to avoid ambiguity with integer abs 2025-04-16 20:41:36 +02:00
Thaddeus Crews
3c0652699a Merge pull request #103967 from HolonProduction/window-focus
GUI: Fix focus cycle through window
2025-04-16 10:45:17 -05:00
Thaddeus Crews
11cb8140b8 Merge pull request #105370 from yuantianle/fix-graphnodes-connected-to-headers-rather-than-ports
Fix GraphNode frag/vert port positions misaligned
2025-04-16 10:45:16 -05:00
Thaddeus Crews
d07c162d10 Merge pull request #105430 from bruvzg/fix_llvm20_mingw_crash
Fix crash in release build with llvm-mingw.
2025-04-16 10:45:16 -05:00
Thaddeus Crews
1a454b6527 Merge pull request #105427 from Calinou/force-angle-rename-macros
Rename `BLOCK_DEVICE()` macro to `FORCE_ANGLE()` in `main.cpp`
2025-04-16 10:45:15 -05:00
Thaddeus Crews
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
Thaddeus Crews
485406b5e0 Merge pull request #104819 from m4gr3d/setup_godot_tools_lib_maven_central
Add maven publishing configuration for Godot tools
2025-04-16 10:45:14 -05:00
Thaddeus Crews
0110048d46 Merge pull request #104826 from smix8/navregion_iteration_id
Add function to get navigation region iteration id from NavigationServer
2025-04-16 10:45:13 -05:00
Thaddeus Crews
7d4ba0759c Merge pull request #105322 from bruvzg/remove_dbg_draw
Remove debug focus rect draws from MenuBar and GraphNode.
2025-04-16 10:45:12 -05:00
Thaddeus Crews
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
Thaddeus Crews
adf41e06fe Merge pull request #105446 from r3square/fix-editor-scale-nan
Fix division by zero when scaling
2025-04-16 10:45:11 -05:00
Thaddeus Crews
5f74f726a0 Merge pull request #105445 from m4gr3d/require_khr_loader_init
OpenXR: Request the `XR_KHR_loader_init` extension
2025-04-16 10:45:10 -05:00
Thaddeus Crews
6a9f46931a Merge pull request #104480 from BlueCube3310/image-unsuported-format
Renderer: Warn when images need to be converted due to their formats being unsupported by hardware
2025-04-16 10:44:52 -05:00
Juan
2f39d8ebef Add thread safety to Object signals
* It turns out the majority of this work was done already by AThousandShips as part of #89451. This allows to do lock-less emitting of signals.
* This means, that only the signal map needs to be protected, making the task simple and without risk of deadlocks, or affecting performance.
* Objects can choose to not protect signals for performance (as example Node uses thread guards for protection, so these signals are not thread safe).
2025-04-16 17:14:44 +02:00
David Snopek
66b40a710f Project manager: Add option to backup project when it will be changed 2025-04-16 09:27:06 -05:00
Fredia Huya-Kouadio
b28e95c8b0 Request the XR_KHR_LOADER_INIT_EXTENSION_NAME extension 2025-04-15 17:51:57 -07:00
square
b278cc4837 Fix division by zero when scaling 2025-04-16 02:30:25 +02:00
yuantianle
6e1fb68f65 Fix GraphNode frag/vert port positions misaligned
Issue conclusion: GraphNode port connections appear misaligned when switching between vertex and fragment modes, only realigning after zoom or layout refresh.

Investigation: The root cause was due to port positions being calculated before child layouts had finalized, resulting in inaccurate Y positions for ports. The original implementation relied on Control::position.y, which was not yet updated during the initial layout pass.

Explaination: This fix computes vertical offset using titlebar and stylebox sizes instead, ensuring port alignment is correct immediately after layout, without relying on zoom-triggered re-layouts.

Resolves: #105232

Add layout mode check to distinguish GraphEditor and ShaderGraphEditor

Fix port position calculation by distinguishing between GraphEditor and ShaderGraphEditor layouts.

Due to differences in layout flow and update timing (CPU vs GPU), ShaderGraphEditor requires manual vertical offset calculation, while standard GraphEditor can directly get the actual child positions after layout in run time.

This change adds a layout mode check (`is_using_resort_layout) to determine the appropriate method for computing port positions.

Fixed nits using cached values and removed redundant condition variable definition.

Add comment for the condition checking.
2025-04-15 14:25:05 -07:00
cier
ebe9370724 Add enable checkboxes to editor sections
Fixes https://github.com/godotengine/godot-proposals/issues/4173
2025-04-15 13:49:41 -07:00
Clay John
dbddc9ef29 Merge pull request #105408 from bruvzg/fix_bmp_scale
Fix bitmap font scaling.
2025-04-15 12:06:20 -07:00
HolonProduction
6b9641d364 Fix focus cycle through window 2025-04-15 20:24:32 +02:00
Pāvels Nadtočajevs
472090dd88 Fix RendererRD crash on start on Intel Macs. 2025-04-15 20:35:56 +03:00
Thaddeus Crews
039d9ffd30 Merge pull request #104317 from pafuent/fixing_wrong_focus_style_clipping_on_scroll_container
Fix `ScrollContainer` focus border issue
2025-04-15 12:28:50 -05:00
Thaddeus Crews
c6341f49a1 Merge pull request #105337 from L2750558108/pr-fix-duplicate-in-node
Replace duplicate code of `is_ancestor_of()` in node.cpp
2025-04-15 12:28:49 -05:00
Thaddeus Crews
df4ac6b237 Merge pull request #105200 from Monstrofil/fix-dds-mipmap-size-compressed-v2
Fix importing compressed dds textures with non-power-of-two width or height
2025-04-15 12:28:48 -05:00