Commit Graph

31754 Commits

Author SHA1 Message Date
Yuri Sizov fce6e13034
Make default/project theme wait for modules before initializing
(cherry picked from commit 33fb44223f)
2021-12-02 17:32:36 +01:00
Hugo Locurcio e463d3daca
Only print message for `get_modified_time()` failure when in verbose mode
This error message was often displayed for no good reason when PCK
files were loaded in the editor.

Since file modification dates are secondary metadata, it's not
very important if it can't be retrieved successfully anyway.

(cherry picked from commit 5acb8a253e)
2021-12-02 17:32:17 +01:00
Rémi Verschelde ba277a0aa0
Revert "Expose Variant operator= to GDNative"
(cherry picked from commit 796f875870)
2021-12-02 11:47:50 +01:00
BimDav 521af55301
expose Variant operator= to GDNative
(cherry picked from commit 084b21c4a8)
2021-12-01 17:09:04 +01:00
Vincent 72709bb821
Fix crash when loading an invalid mp3 file
(cherry picked from commit 2d0068d1cb)
2021-12-01 17:01:31 +01:00
Yuri Sizov 2b9a1e0d2c
Fix a crash in editor's script parent class check
(cherry picked from commit 62c34a6be7)
2021-12-01 14:36:24 +01:00
Rémi Verschelde 49285b2639
Remove editor splash screen with sponsors logo
The Godot Project Leadership Committe has decided to update the sponsoring
tiers so that the Platinum Sponsorship no longer includes a logo on the
editor splash screen.

This lets us reclaim the editor splash screen space for community-related
content instead of sponsors (e.g. a different community-designed splash
screen for each stable branch?).

Also removes two Platinum Sponsors whose sponsorship has expired earlier this
year.

(cherry picked from commit c283fce698)
2021-12-01 14:36:03 +01:00
Rémi Verschelde 187530de7d
doc: Fixup Tabs reference after cherry-pick
(cherry picked from commit 6cf77f80b5)
2021-11-30 14:47:22 +01:00
Fabio Alessandrelli 4ce01a35be
[HTML5] Fix multi-touch input handling.
The code to populate the input data for WebAssembly was incorrectly
overriding values when multiple touches were present due to wrong
indexing.

(cherry picked from commit 470496d8d4)
2021-11-30 12:21:28 +01:00
zacryol 7a79ee014d
Clarify usage of TabContainer
Makes it more clear that TabBar is separate from TabContainer, and that the container draws the tabs itself.

(cherry picked from commit 5c645d510f)
2021-11-30 11:00:05 +01:00
bruvzg 726fe83b84
[macOS] Fix driver crash when enabling per-pixel transparency on M1 macs.
(cherry picked from commit f72cc71ebe)
2021-11-30 10:59:49 +01:00
ator-dev 43d23c3926
Prevent hidden tab close buttons from intercepting input [3.x]
(cherry picked from commit a8977006fd)
2021-11-30 10:59:32 +01:00
Haoyu Qiu 8e441d7c8b
Fix potential infinite loop when connecting HTTPClient
(cherry picked from commit de1cdc2102)
2021-11-30 10:59:18 +01:00
kobewi b646852765
Don't show tooltips for paused controls
(cherry picked from commit fe28e823c5)
2021-11-29 17:01:51 +01:00
bruvzg 552feba40b
Fix RTL min/max line width calculation.
(cherry picked from commit 33b26e5cdc)
2021-11-29 16:45:32 +01:00
kobewi 97404dc612
Fix right alignment in RichTextLabel
(cherry picked from commit 820f7c9d15)
2021-11-29 16:45:22 +01:00
Eric 2e1646e484
Fix condition on 'jump to limits' logic
This is a fix for: #54856

(cherry picked from commit 7257bb6ad0)
2021-11-29 16:44:53 +01:00
Yuri Sizov 93fe9ecb97
Add methods to get position from column and line in TextEdit
(cherry picked from commit ba747e2a26)
2021-11-29 16:44:34 +01:00
Wilson E. Alvarez 07767fc676
Fix 'Add Node...' menu entries in AnimationNodeBlendTreeEditor
(cherry picked from commit 1a2153eb0a)
2021-11-29 16:44:21 +01:00
Red Headphone d5bd37a1d1
progress_offset now added to reference cross draw function
(cherry picked from commit 8a6c6d5329)
2021-11-29 16:43:57 +01:00
Fabio Alessandrelli 35b7e86e6e
[HTML5] Use compatibility function for glGetBufferSubData.
The "webgl/webgl2.h" include provides that function, but it's not
available in emscripten versions < 2.0.17 .

Since we need to support emscripten 1.39.9 (mono builds), this commit
adds a JS function in library_godot_display.js as a compatibility layer
for it, and implement glGetBufferSubData by funneling the call to that
function (so we don't have name collisions JS-side with recent emcc).

All those hacks are now moved to the platform directory instead of being
ifdefs inside the drivers implementations.

(cherry picked from commit bbfe054175)
2021-11-29 16:42:26 +01:00
Fabio Alessandrelli 8fb897ecfa
[HTML5] Use absolute path for JS lib/pre/externs.
Ensure better compatibility when emcc which may run some tools from
different paths (e.g. closure compiler).

This fixes externs include issues with modern emcc using the closure
compiler.

(cherry picked from commit eaedc92c61)
2021-11-29 16:41:44 +01:00
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