Commit graph

31732 commits

Author SHA1 Message Date
zacryol
afa8844679
Fix description of Viewport find_world_2d() method.
The doc now states that the method searches for a World2D among ancestor Viewports as well, differentiating it from the get_world_2d() getter.

and also find_world_3d()

(cherry picked from commit 81c1d5197e)
2021-11-29 16:40:48 +01:00
Fabio Alessandrelli
8f0208af65
[HTML5] Fix focus (again) in Firefox's iframes.
This actually makes sense(?), when running inside an iframe the active
element might be our canvas, while the iframe itself is not active in
the parent window. Since we consume the event, the iframe does not get
focused in Firefox (but does in Chromium-based browsers), so we must
always call focus to handle such occasions.

(cherry picked from commit 63e2db2499)
2021-11-26 10:43:32 +01:00
Rémi Verschelde
7b0801c7fb
Merge pull request #55326 from akien-mga/3.4-cherrypicks 2021-11-26 00:12:36 +01:00
kobewi
e203910804
Correct the doc about ease()
(cherry picked from commit 44e6655924)
2021-11-25 23:13:16 +01:00
kobewi
f5ea27e587
Mention that replace_by doesn't free the node
(cherry picked from commit 58a3ea5453)
2021-11-25 23:13:16 +01:00
bruvzg
b8f888a43b
Add Input.is_physical_key_pressed method.
(cherry picked from commit 9877d91c4a)
2021-11-25 23:13:15 +01:00
Hugo Locurcio
5555a69b5e
Document the engine's use of internal groups in Node
(cherry picked from commit f8d9e4afdb)
2021-11-25 23:13:15 +01:00
Gergely Kis
f2ef3e67a1
Fix debug build for iphone
printf() does not have a version that accepts std::string
as format string parameter.

(cherry picked from commit a1a3e79ea5)
2021-11-25 23:13:15 +01:00
kobewi
b8bda1fb67
Clarify get_indexed in relation to Nodes
(cherry picked from commit 4ea6709558)
2021-11-25 23:13:15 +01:00
kobewi
4876686cf7
Improved some editor checkboxes
(cherry picked from commit 5dc7346ab4)
2021-11-25 23:13:15 +01:00
Hugo Locurcio
60d1200a26
Print a warning with unknown SCons variables to ease troubleshooting
When disabling specific modules, misspellings can occur. Additionally,
when switching between the `3.x` and `master` branches frequently,
it's possible to forget about renamed modules such as `lightmapper_cpu`
versus `lightmapper_rd`.

(cherry picked from commit 69b2d3f791)
2021-11-25 23:13:15 +01:00
Haoyu Qiu
6516f26948
Fix crash when executing PackedDataContainer._iter_init
(cherry picked from commit 8253a45a1a)
2021-11-25 23:13:15 +01:00
Haoyu Qiu
c6927a9790
Fix Theme Editor crash when clicking the element picker
(cherry picked from commit abd41dedb0)
2021-11-25 23:13:15 +01:00
kleonc
ac56f95685
TileSetEditor Fix selecting next/previous subtile
(cherry picked from commit 97e9165de4)
2021-11-25 23:13:14 +01:00
jitspoe
b9d6d54746
Fix crash when exporting gltf mesh that has no skin.
(cherry picked from commit 734b4a46bc)
2021-11-25 23:13:14 +01:00
lawnjelly
07e5022cce
BVH - add option for expanded AABBs in leaves
This PR adds a define BVH_EXPAND_LEAF_AABBS which is set, which stores expanded AABBs in the tree instead of exact AABBs.

This makes the logic less error prone when considering reciprocal collisions in the pairing, as all collision detect is now taking place between expanded AABB against expanded AABB, rather than expanded AABB against exact AABB.

The flip side of this is that the intersection tests will now be less exact when expanded margins are set.

All margins are now user customizable via project settings, and take account of collision pairing density to adjust the margin dynamically.

(cherry picked from commit 211dc8cd2d)
2021-11-25 23:13:14 +01:00
kobewi
f667afc8b2
Show tooltips even when paused or time_scale is 0
(cherry picked from commit 5b55599211)
2021-11-25 23:13:14 +01:00
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