1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-05 19:31:35 +00:00
Commit Graph

17188 Commits

Author SHA1 Message Date
2750558108
c2eba05312 Add speed scale feature for VideoStreamPlayer node 2025-05-28 08:58:32 +08:00
Thaddeus Crews
c18c5c0b2c Merge pull request #106864 from akien-mga/tileset-warning-maybe-uninitialized
TileSet: Fix `-Wmaybe-uninitialized` warning on CompatibilityShapeData
2025-05-27 09:39:35 -05:00
Thaddeus Crews
f619ca2519 Merge pull request #60143 from Rindbee/better-connection-dialog
Add a flag to make the connection automatically emit the source object.
2025-05-27 09:39:34 -05:00
Thaddeus Crews
91b3a26438 Merge pull request #106848 from Faless/mp/rpc_config_revert
Expose `get_rpc_config` and `get_node_rpc_config`
2025-05-27 09:39:32 -05:00
Thaddeus Crews
05ceab6b7b Merge pull request #106321 from elzewyr/shrink-factor
SoftBody3D: Add a property for scaling rest lengths of edge constraints
2025-05-27 09:39:29 -05:00
Thaddeus Crews
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
Thaddeus Crews
b37869e36d Merge pull request #106825 from berarma/video_timing
VideoStreamPlayer: Fix sync with the scene tree
2025-05-27 09:39:26 -05:00
Thaddeus Crews
63dff62948 Merge pull request #100673 from RandomShaper/res_duplicate
Overhaul resource duplication
2025-05-27 09:39:25 -05:00
Thaddeus Crews
482dacc300 Merge pull request #103583 from beicause/color-picker-add-intensity
ColorPicker: Add an intensity slider to all modes for HDR
2025-05-27 09:39:21 -05:00
Rindbee
5e2396e001 Add a flag to make the connection automatically emit the source object.
Mainly used to improve the connection dialog.

Not implemented in `emit_signalp()`, append the source object when a PackScene is instantiated.
2025-05-27 20:19:03 +08:00
Rémi Verschelde
baa92252d3 TileSet: Fix -Wmaybe-uninitialized warning on CompatibilityShapeData 2025-05-27 13:51:13 +02:00
Haoyu Qiu
8d93b6a54c Add translation preview in editor 2025-05-27 07:59:28 +08:00
Fabio Alessandrelli
b73ec1fa9b Expose get_rpc_config and get_node_rpc_config 2025-05-27 00:43:21 +02:00
Bernat Arlandis
1165021b0c VideoStreamPlayer: Fix sync with the scene tree 2025-05-26 20:04:14 +02:00
Lukas Tenbrink
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
Thaddeus Crews
de2cd663fd Merge pull request #100463 from PiCode9560/softbody-apply-force-and-impulse
Add ability to apply forces and impulses to `SoftBody3D`
2025-05-26 11:24:45 -05:00
Thaddeus Crews
955744fdaf Merge pull request #106733 from Ivorforce/ok-rainbows
Use OkHSV for `RichTextLabel` rainbows
2025-05-26 11:24:44 -05:00
Thaddeus Crews
f3f76df0cd Merge pull request #103504 from lawnjelly/fti_warn_physics_non_interp4
Physics Interpolation - Add editor configuration warnings
2025-05-26 11:24:39 -05:00
Thaddeus Crews
04af103d0b Merge pull request #106815 from timothyqiu/menu-bar-min-size
Fix MenuBar min size not updating after child rename
2025-05-26 11:24:36 -05:00
Thaddeus Crews
e89c4b0f9f Merge pull request #102330 from RGDTAB/add_partial_smaa
Add SMAA 1x to screenspace AA options
2025-05-26 11:24:35 -05:00
Thaddeus Crews
b144bbb510 Merge pull request #106553 from Lazy-Rabbit-2001/sprite-dragging-improved
Reintroduce the dragging method of Sprite2D's region_rect
2025-05-26 11:24:34 -05:00
Thaddeus Crews
869807a7b8 Merge pull request #106796 from akien-mga/tileset-compat-conversion-prevent-crash
TileSet: Prevent crash in conversion of invalid tiles from Godot 3.x
2025-05-26 11:24:33 -05:00
Thaddeus Crews
777f1c10fa Merge pull request #105376 from KoBeWi/quequeque
Queue hover update when creating TreeItem
2025-05-26 11:24:32 -05:00
Thaddeus Crews
9cf026a3b9 Merge pull request #106783 from bruvzg/ac_linux_state
Do not activate accessibility when screen reader detection failed.
2025-05-26 11:24:31 -05:00
Thaddeus Crews
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
Thaddeus Crews
506417fe43 Merge pull request #105623 from lodetrick/section-feature-hide
Allow Inspector Section Checkboxes to hide features, Add "On" text to checkboxes
2025-05-26 11:24:25 -05:00
Thaddeus Crews
5186987dde Merge pull request #106254 from chsoen/fix-105582
Change Selected value for OptionButton when last item is deleted.
2025-05-26 11:24:24 -05:00
Thaddeus Crews
f984e15b39 Merge pull request #106244 from lawnjelly/fti_optimize_scene_tree4
FTI - Optimize `SceneTree` traversal
2025-05-26 11:24:21 -05:00
Fabio Alessandrelli
c28d5d0058 Revert "Expose get_rpc_config and get_node_rpc_config"
This reverts commit 8835f326b1.
2025-05-26 15:57:38 +02:00
Pedro J. Estébanez
342266cfd9 Overhaul Variant::duplicate() for resources
This in the scope of a duplication triggered via any type in the `Variant` realm. that is, the following: `Variant` itself, `Array` and `Dictionary`. That includes invoking `duplicate()` from scripts.

A `duplicate_deep(deep_subresources_mode)` method is added to `Variant`, `Array` and `Dictionary` (for compatibility reasons, simply adding an extra parameter was not possible). The default value for it is `RESOURCE_DEEP_DUPLICATE_NONE`, which is like calling `duplicate(true)`.

Remarks:
- The results of copying resources via those `Variant` types are exactly the same as if the copy were initiated from the `Resource` type at C++.
- In order to keep some separation between `Variant` and the higher-level animal which is `Resource`, `Variant` still contains the original code for that, so it's self-sufficient unless there's a `Resource` involved. Once the deep copy finds a `Resource` that has to be copied according to the duplication parameters, the algorithm invokes the `Resource` duplication machinery. When the stack is unwind back to a nesting level `Variant` can handle, `Variant` duplication logic keeps functioning.

While that is good from a responsibility separation standpoint, that would have a caveat: `Variant` would not be aware of the mapping between original and duplicate subresources and so wouldn't be able to keep preventing multiple duplicates.

To avoid that, this commit also introduces a wormwhole, a sharing mechanism by which `Variant` and `Resource` can collaborate in managing the lifetime of the original-to-duplicates map. The user-visible benefit is that the overduplicate prevention works as broadly as the whole `Variant` entity being copied, including all nesting levels, regardless how disconnected the data members containing resources may be across al the nesting levels. In other words, despite the aforementioned division of duties between `Variant` and `Resource` duplication logic, the duplicates map is shared among them. It's created when first finding a `Resource` and, however how deep the copy was working at that point, the map kept alive unitl the stack is unwind to the root user call, until the first step of the recursion.

Thanks to that common map of duplicates, this commit is able to fix the issue that `Resource::duplicate_for_local_scene()` used to ignore overridden duplicate logic.
2025-05-26 10:06:40 +02:00
Haoyu Qiu
b2d47352d0 Fix MenuBar min size not updating after child rename 2025-05-26 14:37:30 +08:00
Rémi Verschelde
b323212e0e TileSet: Prevent crash in conversion of invalid tiles from Godot 3.x
Fixes #80898.
2025-05-25 15:20:56 +02:00
Pāvels Nadtočajevs
f92fd74268 Do not activate accessibility when screen reader detection failed. 2025-05-25 00:17:23 +03:00
lawnjelly
c7764ef26b FTI - Optimize SceneTree traversal 2025-05-24 17:38:33 +01:00
Lazy-Rabbit-2001
3a7e45c0e7 Reintroduce the dragging method of Sprite2D's region_rect 2025-05-24 19:41:05 +08:00
chansoen
cf7e88f6ac Fix option_button.cpp not updating selected when out of bounds 2025-05-23 13:00:31 -07:00
PiCode
fe3aaa2ae3 Add functions to apply impulse and force to SoftBody on GodotPhysics and JoltPhysics 2025-05-23 22:04:52 +03:00
Thaddeus Crews
274ed34ac4 Merge pull request #93836 from aaronfranke/capsule-mid-height
Add mid height property to CapsuleShape2D/3D
2025-05-23 09:46:13 -05:00
LuoZhihao
8a9409257b ColorPicker: Add intensity slider
Add intensity slider to all color modes. Replace raw mode by linear mode, which uses linear color space.

When color is overbright, automatically switch hex text to script text. Allow executing expression in script text field to set color. Add the "script" icon to the default theme.
2025-05-23 12:45:29 +08:00
Lukas Tenbrink
ea6fbd6687 Use OkHSV for rainbow labels. 2025-05-22 22:53:32 +02:00
Thaddeus Crews
63070dd61e Merge pull request #106224 from lawnjelly/fti_scenetree_faster_children
`SceneTreeFTI` faster access to `Node` children
2025-05-22 12:15:09 -05:00
Thaddeus Crews
5b2525673a Merge pull request #102360 from berarma/theora_seek
Implement seek operation for Theora video files, improve multi-channel audio resampling.
2025-05-22 12:15:07 -05:00
Thaddeus Crews
8085fd3102 Merge pull request #93142 from clayjohn/z_clip_scale
Add new shader built ins: `Z_CLIP_SCALE` and `PERSPECTIVE_SCALE`
2025-05-22 12:15:06 -05:00
Thaddeus Crews
4daad86a86 Merge pull request #106562 from zeux/lod-metrics
Adjust LOD selection metrics to use attribute error
2025-05-22 12:15:03 -05:00
Thaddeus Crews
7c6951da42 Merge pull request #106671 from bruvzg/svg_lazy_load
Improve SVGTexture lazy loading.
2025-05-22 12:14:59 -05:00
Bernat Arlandis
b9bebf7081 Full Theora video support in VideoStreamPlayer
- Implement `set_stream_position` and `get_stream_length`.
- Don't show blank frame when stopping the video (smooth loops).
- Fix audio for videos with up to 8 channels.
- Improve internal audio handling.
2025-05-22 14:00:57 +02:00
Logan Detrick
1a427d3dec Add feature hint string and "On" text for checkable groups 2025-05-21 14:56:55 -07:00
Raymond DiDonato
6b99608950 Add SMAA 1x 2025-05-21 15:02:09 -04:00
lawnjelly
cbd6c8d561 SceneTreeFTI faster access to Node children 2025-05-21 17:19:10 +01:00
Thaddeus Crews
4a44078451 Merge pull request #106654 from jamie-pate/fix_106647
Fix Heap buffer overflow in Animation::_find()
2025-05-21 09:06:28 -05:00