Commit Graph

31715 Commits

Author SHA1 Message Date
Haoyu Qiu 58dc743a2c
Allow toggle TextEdit bookmark gutter
(cherry picked from commit eb6f74855f)
2021-11-25 23:13:14 +01:00
Marcel Admiraal fab0c48c80
Fix Android `get_screen_orientation()` not returning valid values
(cherry picked from commit 05744ee0e2)
2021-11-25 23:13:14 +01:00
Fredia Huya-Kouadio 2a12784498
Add support for OpenXR export configurations.
(cherry picked from commit 9c50bcabed)
2021-11-25 23:13:14 +01:00
clayjohn 5e95d317e6
Update CanvasItem when MultiMesh instance transform changes
(cherry picked from commit b54d4a93be)
2021-11-25 23:13:13 +01:00
Rémi Verschelde 1b3c02eba6
libvorbis: Sync with upstream 1.3.7
Fixes various bugs, including several ones with security relevance.

Changes: https://github.com/xiph/vorbis/releases/tag/v1.3.7
(cherry picked from commit 28ad2e8c72)
2021-11-25 23:13:13 +01:00
Rémi Verschelde fee4142425
libogg: Update to upstream 1.3.5
Mostly a cosmetic update, we were already on a commit close to what
ended up being tagged as 1.3.5. Adds an extra buffer overflow fix.

(cherry picked from commit 77efd406bf)
2021-11-25 23:13:13 +01:00
Rémi Verschelde 9d6e01a5a3
certs: Sync with Mozilla bundle as of Nov 1, 2021
edd798d35a
(cherry picked from commit 07f8996b1c)
2021-11-25 23:13:13 +01:00
Fabio Alessandrelli 2a4efa3bcd
[HTML5] Add checks to Gamepad API events.
In some conditions the events might be generated even when the `gamepad`
object is not accessible due to Security Context requirements.
This commit adds a check to avoid firing the handler in those cases.

(cherry picked from commit 91dbc288cc)
2021-11-25 23:13:13 +01:00
Fabio Alessandrelli d70461b27e
[HTML5] Fix input not focusing canvas.
mousedown and touchstart should focus the canvas to ensure correct
application lifecycle.

(cherry picked from commit f13c7fc83e)
2021-11-25 23:13:13 +01:00
lawnjelly 1698dbe30e
BVH - detect shrinkage within expanded bounds
Although the expanded bounds were working in normal use, for moving and growing objects, there was one case which was not dealt with properly - significant shrinkage of exact bounds within an expanded bound.

This PR detects significant shrinkage and forces a new expanded bound to be created.

(cherry picked from commit ed47570266)
2021-11-25 23:13:12 +01:00
David Sichma 5eb644fab5
Fixed pre-commit-black file extensions
Now hook can find .py files.

(cherry picked from commit 3fe10c7e9d)
2021-11-25 23:13:12 +01:00
Giwayume fd558de972
Fix edge case where 1px cut off from right of image
Backward loop should remain -1

(cherry picked from commit 88c1411051)
2021-11-25 23:13:12 +01:00
Giwayume 27f0a9547f
Fix texture atlas generation when source sprite is larger than generated atlas
(cherry picked from commit 0093bda767)
2021-11-25 23:13:12 +01:00
lawnjelly 100c6d8ccd
BVH - fix typename compiler warning
Some versions of microsoft compiler flag a warning that they want a typename keyword in templates in more places than clang / gcc.

(cherry picked from commit 9315b4fb51)
2021-11-25 23:13:12 +01:00
Will Jordan e2cf151560
Fix crash on macOS (AS) when dualshock4 is removed
(cherry picked from commit 283e31a3e2)
2021-11-25 23:13:07 +01:00
kobewi 0a519fed25
Fix TileSet editor workspace breaking
(cherry picked from commit f3d5ef6f7b)
2021-11-25 21:04:14 +01:00
kobewi cce91ce6e0
Mention how to add margins to Button's icon
(cherry picked from commit 2341c7bbd9)
2021-11-25 21:03:42 +01:00
Rémi Verschelde f737ed4da0
i18n: Sync classref translations with Weblate 2021-11-19 09:54:07 +01:00
Rémi Verschelde 7ca1be5f37
i18n: Sync editor translations with Weblate 2021-11-19 09:48:42 +01:00
PouleyKetchoupp e6b48769de
Fix physics BVH pairing for teleported or fast moving objects
Updating the broadphase to find new collision pairs was done after
checking for collision islands, so it was working in most cases due to
the pairing margin used in the BVH, but in case of teleported objects
the narrowphase collision could be skipped.

Now it's done before checking for collision islands, so we can ensure
that broadphase pairing has been done at the same time as objects are
marked as moved so their collision can be checked properly.

This issue didn't happen in the Octree/HashGrid because they do nothing
on update and trigger pairs directly when objects move instead.

(cherry picked from commit e9fdf3e61f)
2021-11-16 21:23:39 +01:00
Rémi Verschelde 387876b592
Merge pull request #55012 from akien-mga/3.4 2021-11-16 09:18:17 +01:00
Lenny Critchley 0ce0af221a
Add error condition for Control EXIT_TREE notif
(cherry picked from commit 3d1249a520)
2021-11-15 23:36:23 +01:00
robfram 2a3925136e
Only visible TileMaps should add light occluders
(cherry picked from commit cf9220b7d5)
2021-11-15 23:33:26 +01:00
robfram 6247687be8
Fix particles emitting at old location
(cherry picked from commit 91b7c80d28)
2021-11-15 23:32:24 +01:00
Hugo Locurcio a49e3bb449
Document low performance when using `SurfaceTool.append_from()` in thread
(cherry picked from commit f39375d315)
2021-11-15 22:47:24 +01:00
lawnjelly 7de023e192
Portals - Allow user to set roaming expansion margin
Previously a crude metric was used to decide on the roaming expansion margin, but it created unexpected results in some scenarios. Instead this setting is exposed to the user via the RoomManager, allowing them to tailor it to the world size, room sizes, roaming objects sizes and the speeds of movement.

(cherry picked from commit 788f075b44)
2021-11-15 22:45:57 +01:00
Hugo Locurcio fc749f7f8b
Improve the GIProbe and BakedLightmap class documentation
This adds information about performance and procedural generation.

(cherry picked from commit 194d45f11d)
2021-11-15 22:37:51 +01:00
Fabio Alessandrelli fd8ae8ce39
[HTML5] Call glGetBufferSubData directly from C++.
Remove leftover EM_ASM causing problems with gdnative builds.

(cherry picked from commit 340ecb93be)
2021-11-15 22:37:36 +01:00
Hugo Locurcio 0b66d80b61
Fix outdated SCons macOS build message
The message incorrectly stated that the minimum supported version
is 10.9, when it is in fact 10.12.

(cherry picked from commit fde50db399)
2021-11-15 22:37:18 +01:00
Rémi Verschelde 63b5d5de64
Modules: Make sure to include `modules_enabled.gen.h` where needed
Fixes #51677.

Co-authored-by: Arkadiusz Marcin Kołek <aksoftware91@gmail.com>
(cherry picked from commit 6f4858f184)
2021-11-15 22:36:02 +01:00
Benjamin Armstrong 4f2993b124
Clarify how 'audio/driver/output_latency' project setting works
(cherry picked from commit 1e485a7da8)
2021-11-15 22:35:33 +01:00
Rémi Verschelde 9868850a9f
Rect2: Clarify docs for `has_point` excluding bottom and right borders
Improve tests, as well as documentation for `expand`.

(cherry picked from commit 36c4451a7b)
2021-11-15 22:35:01 +01:00
boruok 0a2dadb639
fixed typo in NavigationPolygon doc
(cherry picked from commit 30d22305e1)
2021-11-15 22:34:11 +01:00
Hugo Locurcio 89cefee947
Swap rest pose actions in the Skeleton2D editor
The texts were changed before, but the actions weren't swapped around.
This led to unexpected behavior.

(cherry picked from commit 4ff1431993)
2021-11-15 22:33:49 +01:00
PouleyKetchoupp f9710ecb5e
Fix test_move reporting collision when touching another body
Reporting rest collision information is needed for move_and_collide and
move_and_slide so floor detection can be done properly, but in the case
of just testing the motion for collision, it makes sense to return false
if the body is able to move all along the path without being stopped.

Updated the logic in test_move and clarified the documentation for
test_move and move_and_collide.

(cherry picked from commit 1560c8b5aa)
2021-11-15 22:33:16 +01:00
PouleyKetchoupp 7344beafdd
Fix errors in KinematicBody when floor is destroyed or removed
In all physics servers, body_get_direct_state() now silently returns
nullptr when the body has been already freed or is removed from space,
so the client code can detect this state and invalidate the body rid.

In 2D, there is no change in behavior (just no more errors).

In 3D, the Bullet server returned a valid direct body state when the
body was removed from the physics space, but in this case it didn't
make sense to use the information from the body state.

(cherry picked from commit b93aeec4a2)
2021-11-15 22:32:53 +01:00
Mark Riedesel 619c1e506e
Fix glTF cubic spline track interpolation incorrectly reporting times/values size mismatch (3.4 specific)
(cherry picked from commit 999bba6916)
2021-11-15 22:32:26 +01:00
Hugo Locurcio 1f35876fd5
Remove hash symbol in front of opcode error messages in GDScript
The hash symbol creates spurious issue references on GitHub if
the message is posted outside a code block, which means some issues
have a lot more references than originally intended.

(cherry picked from commit 63d214f04b)
2021-11-15 22:31:32 +01:00
Hugo Locurcio 96b32740d3
Print the number of PulseAudio input channels when in verbose mode
This is useful information to have for troubleshooting, and it's
said to sidestep a possible race condition issue that breaks
microphone recording on Linux.

(cherry picked from commit de912a8bd9)
2021-11-15 22:30:57 +01:00
Ryan Roden-Corrent a9a3702d69
Clamp rotation for up/down orbiting shortcuts.
This prevents the viewport from going upside-down.

This was suggested at:
https://github.com/godotengine/godot/pull/51984#issuecomment-948614191:

> For 3.4, I think we can just clamp the angle value when using the
> camera orbiting shortcuts. We can investigate what to do with panning
> and freelook in 3.5 and 4.0.

(cherry picked from commit 3bd7c4f2a9)
2021-11-15 22:30:27 +01:00
Omar El Sheikh 20e7a4095e
Fix Vertex Attribute Specification Octahedral
For octahedral compressed normals/tangents, we use vec4 in the shader
regardless of whether a normal/tangent does/doesn't exist

For the case where we only have a normal vector, we need to specify that
there are only two components being used when calling glVertexAttrib

Before we would always specify that there were 4 components, and used
offsets to determine where in the vertex buffer to read data from but
this doesn't work on all platforms

(cherry picked from commit 8a43b222c7)
2021-11-15 22:28:23 +01:00
Ignacio Roldán Etcheverry b63f1fc603
C#: Don't use ActivityThread to determine Android nativeLibraryDir
(cherry picked from commit 690bf12c4c)
2021-11-15 22:27:38 +01:00
kobewi 0f422ad35b
Fix editor saving blank scenes (for real)
(cherry picked from commit 8144ac79cf)
2021-11-15 22:26:45 +01:00
bruvzg 4574b3ebeb
[iOS export] Capture and display xcodebuild output.
(cherry picked from commit 2e74bacf17)
2021-11-15 22:25:35 +01:00
Brian Semrau 1cbc17247c
Prevent obj importer from printing misleading error
(cherry picked from commit bd0d15c5be)
2021-11-15 22:24:45 +01:00
Josh Jones a19040d2de
Fix request headers being included in response.
(cherry picked from commit 7df8bd6b85)
2021-11-15 22:24:22 +01:00
bruvzg a4b736606f
[Export] Read and ZIP project files in 16K chunks instead of reading the whole file at once.
(cherry picked from commit c8f3dd776b)
2021-11-15 22:23:59 +01:00
Julian Adamse 5145c1d783
Fix the volume calculation for cylinders
(cherry picked from commit 03903fdeec)
2021-11-15 22:23:17 +01:00
Kongfa Waroros 5f27fd458c
Fix little typos in 3.x doc
(cherry picked from commit 0d852bf5a6)
2021-11-15 22:22:45 +01:00
PouleyKetchoupp c2a108fe7d
Expose intersect_point in 3D physics server
Also cleaned a few things in the documentation for 2D.

(cherry picked from commit fc2bd63ca0)
2021-11-15 22:22:31 +01:00