Commit Graph

66197 Commits

Author SHA1 Message Date
4d7feff723 Fix snapping when zoomed in Polygon2D UV editor
(cherry picked from commit 1b7626f391)
2024-09-16 17:22:50 +02:00
1d775b5b97 [mbedTLS] Fix incorrect cert pinning with client_unsafe
(cherry picked from commit ccae47ab66)
2024-09-16 17:22:33 +02:00
b6055941b9 [Windows] Hide cursor before moving.
(cherry picked from commit 9a2977fef1)
2024-09-16 17:20:22 +02:00
Sen
e5be133032 Fix for multimesh motion vector corruption by resetting motion vector state and filling both halves of buffer
(cherry picked from commit 52cd5acdda)
2024-09-16 17:19:58 +02:00
0f33a4b97e Fix invalid Skeleton3D bone pose updates
The issue would cause log spams when trying to update the bone pose position or rotation with an invalid bone index.

(cherry picked from commit 039722a341)
2024-09-16 17:19:17 +02:00
f9bcd4f0ca Enable revert button for ShaderMaterial::next_pass and ShaderMaterial::render_priority.
(cherry picked from commit ba23b22153)
2024-09-16 17:19:07 +02:00
169b568e65 Fix C# code example for Object._get_property_list
There were two small errors in this code example that kept it from working when copied to a new node locally. These are the fixes I used locally to test the example.

(cherry picked from commit 97cf2c147e)
2024-09-16 17:18:54 +02:00
95a0525361 Fix animation library copy-paste not preserving resource reference
(cherry picked from commit 08ef14a037)
2024-09-16 17:18:40 +02:00
8e1d1a54fe Compatibility: Fix crash when initializing certain compressed layered textures
(cherry picked from commit e8b4568900)
2024-09-16 17:18:24 +02:00
99dde70ad3 Fix relative paths for global class icons in C#
(cherry picked from commit 3c0eaec39f)
2024-09-16 17:18:14 +02:00
e59f59a439 [Editor] Prevent unnecessary editor theme regeneration on unrelated system setting update.
(cherry picked from commit 97085358ce)
2024-09-16 17:18:03 +02:00
afc330e33f Use wayland-egl-core.h instead of wayland-egl.h
-avoid use of transitive wayland include

-resolves https://github.com/godotengine/godot/issues/95830

Signed-off-by: Joel Winarske <joel.winarske@gmail.com>
(cherry picked from commit 6ce71f0fb0)
2024-09-16 17:17:49 +02:00
219ddde30c Honor pitch_scale value before playing audio sample
(cherry picked from commit aaafd163b2)
2024-09-16 17:15:29 +02:00
2dd696867f Always store ID of PopupMenu items
(cherry picked from commit 5279fec60f)
2024-09-16 17:15:19 +02:00
9cf21b4b03 Fix some C# variable types In AStar2D/3D Class Reference
(cherry picked from commit 1928a84f6e)
2024-09-16 17:15:07 +02:00
497570b1cf Fix typo in Array code example
(cherry picked from commit b516742358)
2024-09-16 17:14:51 +02:00
70a8761deb Fix crash when calling OpenXRAPI::get_hand_tracker() and hand-tracking is disabled
(cherry picked from commit 11dd1f52ae)
2024-09-16 17:14:35 +02:00
19bed8fee7 Fix Vector3 Slerp Normalizing Zero Vectors
Ported the existing zero length check in C++ into C#.

(cherry picked from commit 0d6e9de0b9)
2024-09-16 17:14:24 +02:00
7874dad279 Minor AnimationNodeBlendSpace2D documentation fixes
Updated a couple parts that seemed to be copied over from AnimationNodeBlendSpace1D

(cherry picked from commit 05bcfda784)
2024-09-16 17:12:52 +02:00
05860062a5 Fix curve2d incorrect sample range description
(cherry picked from commit 5183588499)
2024-09-16 17:12:40 +02:00
8496e0738f Fix drag&drop between window on Windows
(cherry picked from commit 0987a9dc06)
2024-09-16 17:12:26 +02:00
20ce427a6c Remember "View Grid" (per-viewport) setting between editor sessions
(cherry picked from commit 080acd7246)
2024-09-16 17:11:42 +02:00
40dcdcbe79 Fix double free in FSR2 destructor
Before this change, using FSR2 resulted in the following error when the
effect was destroyed:

	ERROR: Attempted to free invalid ID: 662734928609453
	   at: _free_internal (servers/rendering/rendering_device.cpp:4957)

This happened because ACCUMULATE and ACCUMULATE_SHARPEN passes shared
the same shader_version object but had different pipeline IDs. When
version_free was called for ACCUMULATE pass, it destroyed pipelines
created from that version, including the pipeline for the
ACCUMULATE_SHARPEN pass.

Using a unique version could work around this problem, but it's easier
to rely on version_free destroying the created pipelines through the
dependency mechanism.

(cherry picked from commit 0024cface5)
2024-09-16 17:10:59 +02:00
b2c83b42f6 Relax motion vector updates to allow skipped frames for skeletons
Before this change, a skeleton that was not updated every frame would
result in a difference of 2+ between last_change and frame index every
frame, which would disable the buffer rotation and set motion vectors to
zero. This results in significant visual artifacts for FSR2 that are
especially prominent on the characters that move together with the view
such as the main character in third person mode.

This is a significant problem for high refresh rate displays: at 120 Hz,
we are effectively guaranteed to skip skeleton updates every other frame
with skeleton update happening during physics processing, and the lack
of physics interpolation for skeletons. This happens by default in TPS
demo when FSR2 is enabled.

In other places where motion vectors are disabled, such as multi-mesh
and mesh rendering (where previous transform is updated), the logic
effectively allows for a single-frame gap in updates, because it
compares the frame where the update happened (which is the current frame
if updates are consistent) with the current frame, so the latency of 0
means "update just happened", but both multi-mesh and mesh transform
updates permit a latency of 1 as well.

Here, however, last_change is updated *after* the frame processing has
concluded, so a zero-latency update has a distance of 1. Allowing a
distance of 2 (latency 1) reduces the severity of the problem and aligns
the logic with transform updates.

Note that the problem will still happen when refresh rate is noticeably
higher than physics rate times 2. For example, it still happens at 240
Hz. However, a longer latency allowance is inconsistent with other
transforms and could lead to issues, so ideally long term physical
interpolation of skeleton transforms would completely solve this.

(cherry picked from commit 92f2bc70dd)
2024-09-16 17:10:47 +02:00
cf40a5bc5a Fix huge tscn icon in FileSystem split mode using list view
(cherry picked from commit 36c9d31a9e)
2024-09-16 17:10:34 +02:00
1ecf20c783 Fix errors about UndoRedo history mismatch when deleting bezier track
(cherry picked from commit 4db3e6e6cd)
2024-09-16 17:10:19 +02:00
b05470efd0 Fix display dialog while saving scene
(cherry picked from commit da31679d12)
2024-09-16 17:10:04 +02:00
433509b489 Fix small graph editor pins at higher display scales
(cherry picked from commit 3f7efd2291)
2024-09-16 17:09:50 +02:00
139f5ee15e Add model_normal_matrix for fragment shader
(cherry picked from commit e698351db2)
2024-09-16 17:09:36 +02:00
bd552ff609 Fallback to theme icon when no custom icon is set in autocompletion
(cherry picked from commit e8254dc3f4)
2024-09-16 17:09:23 +02:00
ecbb9a9c6a Fix GLES3 crash with Mesh surface with exactly 65536 vertices
Fixes #95837.

(cherry picked from commit bde165ccb3)
2024-09-16 17:09:12 +02:00
d0c4f19dd2 Fix gizmos without visible geometry not being selectable
The issue was that Node3DEditorViewport was using the render server's BVH to filter out nodes,
which is not correct for gizmos that have no renderable components,
or have collision triangles that exceed the bounds of their renderable components.

(cherry picked from commit 45f6110e26)
2024-09-16 17:08:59 +02:00
df6bbb2538 Fix MenuBar popup placement assuming it's in viewport default canvas
(cherry picked from commit 8228d647a9)
2024-09-16 17:08:44 +02:00
1d0bcae019 GLTF: Propagate owner for root node children
(cherry picked from commit 246cc7e86d)
2024-09-16 17:08:33 +02:00
df522db6f0 Fix virtual binding for ScriptLanguageExtension::_reload_scripts
(cherry picked from commit d65ea6fb9c)
2024-09-16 17:06:44 +02:00
c684d65c64 Use transformed roughness instead of raw roughness to calculate roughness fade in SSR
(cherry picked from commit b99d0d778a)
2024-09-16 17:06:30 +02:00
5676d398e0 Avoid potential crash on signal disconnection
(cherry picked from commit 32b7f835d8)
2024-09-16 17:06:19 +02:00
32f2b851ab Redraw SubViewportContainer on SubViewport size change
(cherry picked from commit 61e2aa7914)
2024-09-16 17:06:04 +02:00
bf5907b724 StringName: Use inline static field definitions
Before this change StringName used regular static field
definitions for its mutex, _table, configured and debug_stringname
fields.

Since in the general case the ordering of the static variable and field
initialization and destruction is undefined, it was possible that
the destruction of StringName's static fields happened prior to
the destruction of statically allocated StringName instances.

By changing the static field definitions to inline in string_name.h,
the C++17 standard guarantees the correct initialization and destruction
ordering.

(cherry picked from commit 723878bbab)
2024-09-16 17:05:50 +02:00
cff0ebd603 Clear drag preview material on NOTIFICATION_DRAG_END
(cherry picked from commit 6aee6c1fdd)
2024-09-16 17:05:37 +02:00
9af6e04a15 Fix backspace always unfolding previous line
(cherry picked from commit 2860b99077)
2024-09-16 17:05:16 +02:00
39fb871310 Fix no validation on Blender path on importation
(cherry picked from commit 2dc9cf50c5)
2024-09-16 17:05:03 +02:00
eaa8ecb182 Fix bone2d scaling
Co-authored-by: Thiago Lages de Alencar <thiagola92@gmail.com>
(cherry picked from commit de558123bf)
2024-09-16 17:04:49 +02:00
c7dbcbd6d4 Fix Skeleton2D.{_set|_get} always returning true
(cherry picked from commit 115cd47fd6)
2024-09-16 17:04:28 +02:00
f0f69a7b7c Fix Parallax2D repeats being not relative to its transform
(cherry picked from commit 1bd8372813)
2024-09-16 17:04:12 +02:00
4168220169 Fix EditorInterface.get_selected_paths() working incorrectly when FileSystemDock is in split mode
(cherry picked from commit b55e97cd85)
2024-09-16 17:03:50 +02:00
d8c13f88ed Fix scene node selection problem when no auto expand
(cherry picked from commit e46280dbb5)
2024-09-16 17:03:02 +02:00
7266418bdf Fix node.duplicate, return nullptr if this operation fails.
(cherry picked from commit 70f41e414e)
2024-09-16 17:02:35 +02:00
b7fc063038 Fix uid:// Paths Fail to Load at Editor Startup
(cherry picked from commit b1c97313e0)
2024-09-16 17:02:12 +02:00
6c202154a7 Add fixed fog to the sky in the Compatibility renderer
And apply luminance multiplier after fog in RD renderer

(cherry picked from commit 578049b7b9)
2024-09-16 17:01:45 +02:00