Commit Graph

55863 Commits

Author SHA1 Message Date
Rindbee 52d56d806d Fix rename animation in SpriteFramesEditor/AnimationNodeStateMachineEditor
When the name suffix grows, the old name is used if it is obtained first.

Fix the case where the following error message would appear when renaming
an animation.

```
ERROR: Animation '' doesn't exist.
   at: get_frame_count (scene/resources/sprite_frames.cpp:71)
```

(cherry picked from commit e9cd29cf22)
2024-01-23 15:56:09 +01:00
MrBBBaiXue 965ea011a0 Delete .lgtm.yml
LGTM has been acquired by Github, and all its features is replaced by Github Code Scanning.
So seems .lgtm.yml is no longer used.

(cherry picked from commit ee6cec1649)
2024-01-23 12:43:11 +01:00
bruvzg ba41f42c82
[macOS] Fix MoltenVK SDK detection after file location changes in 1.3.275.0.
(cherry picked from commit a2c1c01941)
2024-01-18 10:47:42 +01:00
Mikael Klasson 39271362c3
Fix invalid Python escape sequences
(cherry picked from commit 4986d6d317)
2024-01-16 17:17:29 +01:00
Rémi Verschelde 2d3b2abcf6
Merge pull request #84328 from akien-mga/4.1-re-disable-exceptions
[4.1] SCons: Re-disable exceptions for Android, iOS, and Web
2023-11-02 09:09:23 +01:00
Rémi Verschelde 1e1d91df6a
SCons: Re-disable exceptions for Android, iOS, and Web
We made a mistake when cherry-picking #80612 with 269b115d9c,
where the global flag was defaulted to false to preserve the 4.1-stable behavior for desktop
platforms, but we forgot that the refactoring removed the force disabling of exceptions for
Android, iOS, and Web.

This reintroduces this behavior so it should be back to the same as in 4.1/4.1.1, and the
export templates should get back to their original size.

Only difference, the old code used to keep exceptions for the Web editor, but I see no reason
for it, so I disable them like with the templates.
2023-11-01 22:16:17 +01:00
Yuri Sizov 65f5865d11 Bump version to 4.1.4-rc
This also fixes a reference issue in the changelog for 4.1.3.
2023-11-01 20:59:38 +01:00
Yuri Sizov fc79201851 Bump version to 4.1.3-stable 2023-11-01 16:34:59 +01:00
Yuri Sizov b79961e3c0 Update changelog for 4.1.3 2023-11-01 16:33:17 +01:00
Fredia Huya-Kouadio 74a1d8addd Update the `launchMode` for the `GodotApp` activity to allow other activities to be part of the same task
For details, see https://developer.android.com/guide/topics/manifest/activity-element#lmode

(cherry picked from commit 14428c8d5b)
2023-11-01 16:20:27 +01:00
Yuri Sizov c5e3fcbeb6 Update changelog for 4.1.3 2023-11-01 15:47:09 +01:00
风青山 7c3ac4d170 Fix `SubViewport` with `UPDATE_WHEN_VISIBLE` not working properly in exported project
The issue is primarily due to `RSG::texture_storage->render_target_was_used()`
returning inconsistent results in the editor and exported projects.

(cherry picked from commit 59d0fdbacc)
2023-11-01 15:30:00 +01:00
Yuri Sizov f80c673cdf Add changelog for 4.1.3 2023-10-26 16:30:30 +02:00
Rémi Verschelde 56feab3258
Bump version to 4.1.3-rc
Should have been done before merging #83901, oops.
2023-10-25 14:29:42 +02:00
Yuri Sizov 4a4356dafc
Merge pull request #83901 from YuriSizov/4.1-cherrypicks
Cherry-picks for the 4.1 branch (future 4.1.3) - 1st batch
2023-10-25 14:17:57 +02:00
David Snopek 9a322737cc GDExtension: Fix `variant_iter_get()` actually calling `iter_next()`
(cherry picked from commit b14f359c94)
2023-10-25 12:23:48 +02:00
warriormaster12 9e315e7c79 Make SkeletonIk3D node usable
(cherry picked from commit ddf93f3f59)
2023-10-25 12:23:48 +02:00
ajreckof 5abac84a9e Fix paste value emptying an array on some right click location
(cherry picked from commit f2758d8591)
2023-10-24 20:15:34 +02:00
Alexander Hartmann 3d8c77dc92 Fix Android logic for deferred window input events being inverted
Notably fixes issues with `is_action_just_*` queries in `_physics_process`
for TouchScreenButton.

Fixes #66318.
Fixes #82396.

(cherry picked from commit 5137497c18)
2023-10-24 20:15:20 +02:00
Saif Kandil d73b76da02 Fix Object class C# syntax error
Signed-off-by: Saif Kandil <74428638+k0T0z@users.noreply.github.com>
(cherry picked from commit 74efbde7df)
2023-10-24 20:10:49 +02:00
CopyTIME f2dd4086b7 Change return type of "_Set" method in csharp code example
Add "return false" to GDScript code example of _Set method

(cherry picked from commit 458cb99966)
2023-10-24 20:10:49 +02:00
kobewi 7f2ebc2389 Fix _set example
(cherry picked from commit 90160eff80)
2023-10-24 20:10:49 +02:00
Rémi Verschelde 93becd4d2e SCons: Use CXXFLAGS to disable exceptions, it's only for C++
Following discussion in https://github.com/godotengine/godot-cpp/pull/1216.

(cherry picked from commit 3bfcbe7946)
2023-10-24 20:02:24 +02:00
David Snopek 10eafe236c Fix `GPUParticles3D` on the Meta Quest 2 with OpenGL renderer
(cherry picked from commit 58775a6c67)
2023-10-24 19:51:53 +02:00
Ninni Pipping c148398735 Fix incorrect virtual function in `VideoStream.set_paused`
(cherry picked from commit 2284689b0e)
2023-10-24 19:51:53 +02:00
Ryan Roden-Corrent c93d74aca0 Update blender export flags for 3.6.
Fixes #76338.

Blender 3.6 imports fail with:

```
TypeError: Converting py args to operator properties: : keyword "export_nla_strips" unrecognized
```

The `export_nla_strips` flag was removed and replaced with `export_animation_mode`.
In 3.6.0-3.6.21, this option does not exist at all and causes the failure above.
In 3.6.22, this option was re-added, but does nothing.
See 96a73cb664.

We now need to check the blender version to determine what flags to use.
This adds an additional shell command before every import.
We might consider caching the version, but we'd have to invalidate the cache if the blender version or path changes.

As an aside, the "group animations" setting in Godot does the opposite of what I'd expect.
When `group_tracks=true`, each animation is exported individually.
When `group_tracks=false`, all animations are exported as a single track.
This seems backwards, but I've kept the 3.6 behavior consistent with 3.5.

From https://docs.blender.org/api/3.6/bpy.ops.export_scene.html:

> ACTIONS Actions – Export actions (actives and on NLA tracks) as separate animations.
> ACTIVE_ACTIONS Active actions merged – All the currently assigned actions become one glTF animation.

Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
(cherry picked from commit 7e64c6c399)
2023-10-24 19:51:53 +02:00
A Thousand Ships 578fa8603d [Audio] Fix pausing stream on entering tree
The paused notifications are only sent when pause status is changed,
this ensures that streams that are non-processing do not play when added
to the tree. Also ensures that the `process_mode` property applies
generally.

(cherry picked from commit 72fccd82c5)
2023-10-24 19:51:53 +02:00
Rémi Verschelde 4c8ee43d08 Sync controller mappings DB with SDL2 community repo
Synced with gabomdq/SDL_GameControllerDB@eb831f75ab

Fixes #83552.

(cherry picked from commit d3c0a7d598)
2023-10-24 19:51:53 +02:00
Rémi Verschelde 0b3c182038 Sync controller mappings DB with SDL2 community repo
Synced with gabomdq/SDL_GameControllerDB@fc4b33c872

(cherry picked from commit e40b0b3ed8)
2023-10-24 19:51:53 +02:00
Matthew Borkowski 34811c1f1e Fix `GDScriptCache::get_full_script` eating parsing errors because of early exit
Fixes #75545.

(cherry picked from commit 2d262c072b)
2023-10-24 19:51:53 +02:00
Max Hilbrunner e37eb47144 Docs: Fix link to Android Gradle build tutorial
(cherry picked from commit 68a1e0c7d4)
2023-10-24 19:51:53 +02:00
Lunarisnia 471af30f7b Fix disabling depth prepass breaks opaque material
(cherry picked from commit 28f7a62ae4)
2023-10-24 19:51:53 +02:00
A Thousand Ships d56a6ad461 Make error suggestion less ambiguous
(cherry picked from commit bea7cc784d)
2023-10-24 19:51:52 +02:00
Haoyu Qiu ac57043a34 Don't auto translate theme type list
(cherry picked from commit 26b21f110a)
2023-10-24 19:50:22 +02:00
bitsawer 27d47246b5 Fix ShaderGlobalsOverride property handling
(cherry picked from commit 71e32364ee)
2023-10-24 19:50:22 +02:00
floatingpointer 82ad6a3dad Update joypad_windows.cpp
Add XInput device for Series 2 Elite controller

(cherry picked from commit 81f9c0345c)
2023-10-24 19:50:22 +02:00
Yogendra Manawat 2b8dbbccae Fix scrolling popup_menu On keyboard/controller input
(cherry picked from commit a16fdb05ae)
2023-10-24 19:50:22 +02:00
Daniel Castellanos de6e7c070c Fixing incorrect swapchain release timing
Applied a couple of checks suggested by @dhoverml for when the
XrResult is not XR_SUCCESS but is also not a failure. Also simplified
checks from @BastiaanOlij feedback.

(cherry picked from commit 771ec958af)
2023-10-24 19:50:22 +02:00
朱力 11f9e35c06 Fixed an error in Vector3.BezierDerivative in mono module
(cherry picked from commit bceba81b54)
2023-10-24 19:50:22 +02:00
bitsawer dac7049e16 Fix errors when freeing GPUParticles
(cherry picked from commit 898d1a2d5f)
2023-10-24 19:00:16 +02:00
Radiant 15eaeddfbf Fix `RefCounted.unreference()` documentation providing wrong info.
(cherry picked from commit 098c445f75)
2023-10-24 19:00:16 +02:00
bruvzg d7fc0805c8 [iOS] Fix build on Xcode 14 and older.
(cherry picked from commit 09d5120865)
2023-10-24 19:00:16 +02:00
bitsawer e65f98576b Fix VoxelGI bake memory leak
(cherry picked from commit 416ef5ad1b)
2023-10-24 19:00:16 +02:00
clayjohn 51fd44318f Avoid default fallback material when using world_vertex_coords
This avoids z-fighting between the opaque shader and the depth prepass shader

(cherry picked from commit 04846c1d6d)
2023-10-24 19:00:16 +02:00
Haoyu Qiu 1ebfd2f510 Fix garbled text in editor toasters
(cherry picked from commit 3006394a69)
2023-10-24 19:00:16 +02:00
bitsawer 27b0e5aebb Fix BoneAttachment3D signal connection
(cherry picked from commit 34574db5b9)
2023-10-24 19:00:16 +02:00
bitsawer efe99e5479 Fix VoxelGI static light pairing
(cherry picked from commit 5e22ded4c9)
2023-10-24 19:00:15 +02:00
bitsawer 75671b7937 Fix GLES3 instanced rendering color and custom data defaults
(cherry picked from commit 6f88ed73be)
2023-10-24 18:59:55 +02:00
viksl ee6bdce5a1 Instead of Vector2() start volumetric fog at frustum_near_size to avoid INF and NaN in shaders.
(cherry picked from commit 00c2fb4a08)
2023-10-24 18:29:41 +02:00
viksl c9e5f90813 Fixes spotlight's cluster artifacts and negative light.
(cherry picked from commit 8a2d345a85)
2023-10-24 18:29:41 +02:00