Commit Graph

32042 Commits

Author SHA1 Message Date
Fabio Alessandrelli
06de19a266
[HTML5] Fetch API now passes credentials.
Used default value before, i.e. "same-origin", now uses "include" (i.e.
include for cross-origin if cross-origin is allowed).

(cherry picked from commit ffe248cbdf)
2022-02-17 10:34:36 +01:00
Haoyu Qiu
4ad179b75d
Fix GridMap memory leak
(cherry picked from commit 5d4a141c97)
2022-02-17 10:34:16 +01:00
Hugo Locurcio
66de60553e
Recommend using GitHub attachments for minimal reproduction projects
Third-party file hosts can have their files expire or be removed
by the owner. In comparison, GitHub attachments are more resilient.

This also fixes the link to create a bug report.

(cherry picked from commit 01c1667836)
2022-02-17 10:33:31 +01:00
Hayden
d47214f344
Make parser treat all exponent literals as float
(cherry picked from commit 1305ff92f7)
2022-02-17 10:33:31 +01:00
Hayden Leete
6e14ab25f6
Added hex and bin literal support to Expression parser
fixed formatting

(cherry picked from commit 018de19eba)
2022-02-17 10:32:21 +01:00
Densorius
fd850ace8a
Fixed opening new instances of VS 2022 while a instance is already open
(cherry picked from commit 93e2d0446f)
2022-02-17 10:32:00 +01:00
Densorius
a357557282
Add Visual Studio 2022 support with fallback to 2019
(cherry picked from commit 9ea0508d35)
2022-02-17 10:31:41 +01:00
TechnicalSoup
04e9de3d71
Expand description for warp_mouse_position method
Add more detail to the description for the warp_mouse_position method, clarifying that the vector is in screen coordinates and relative to an origin at the top of the game window.

(cherry picked from commit 3dc1fad262)
2022-02-17 10:31:12 +01:00
bruvzg
58d1a8f344
[macOS] Add missing translation file.
(cherry picked from commit 1aa6a95081)
2022-02-17 10:30:53 +01:00
bruvzg
f883dd48ca
Add empty translation files to the exported app bundle, to allow translation detection by the OS.
(cherry picked from commit 2eeff4caec)
2022-02-17 10:30:53 +01:00
bruvzg
499cb0bf12
[macOS] Add empty translation files to the editor app bundle, to allow translation detection by the OS.
(cherry picked from commit 3b4de845fe)
2022-02-17 10:30:53 +01:00
Max Hilbrunner
6ce71b78a7
DOCS: Object.set() does nothing on type mismatch
(cherry picked from commit bb7d003881)
2022-02-17 10:26:38 +01:00
Rémi Verschelde
2cc4616d6b
SCons: Add fast_unsafe option for faster rebuilds
This reverts #53828 which had caused a significant drop in incremental
rebuild time for debug builds (from 10s to 23s on my laptop).

The "faster but unsafe" options are re-added, as well as adding
`max_drift=60` which we didn't use previously.

These options speed up SCons' own processing of the codebase to decide
what to build/rebuild (i.e. the first step before actually calling the
compiler). This will therefore not make much difference for scratch
builds, and is mostly useful for incremental rebuilds (including "null"
rebuilds with no change).

These options are enabled automatically for `debug` builds, unless
`fast_unsafe=no` is passed.
They are disabled by default for `release` and `release_debug` builds,
unless `fast_unsafe=yes` is passed.

(cherry picked from commit d4553c5126)
2022-02-17 10:26:17 +01:00
Nathan Franke
4ef3985dc3
use exact match when checking focus next / previous
(cherry picked from commit c27b05febb)
2022-02-17 10:25:46 +01:00
lawnjelly
4f86249d1e
Fix for S3TC on Android and IOS devices
On some platforms, exporters are prevented from exporting S3TC textures. This causes problems if the .import file contains a reference to such a texture - the exported project will attempt to load the S3TC, fail, and probably crash.

This PR prevents this problem by faking lack of hardware support for S3TC on the affected platforms. This prevents the engine attempting to load the S3TC and avoids the problem.

(cherry picked from commit b15ad8e786)
2022-02-17 10:25:30 +01:00
Sergey Minakov
21b6d31e4c
[iOS] Fix touch handling for overlay views
Workaround for GodotView touches being called from UIWindow on different UIView input

(cherry picked from commit aba5f6d9be)
2022-02-17 10:25:07 +01:00
Haoyu Qiu
8093d25827
Fix RayCast{,2D}.clear_exceptions clears parent
(cherry picked from commit 74a4795fb1)
2022-02-17 10:24:46 +01:00
Jason Knight
07cc27692d
Use ScriptServer::get_global_class_base instead of script_class_get_base in script_class_is_parent.
(cherry picked from commit 6f7cef601a)
2022-02-17 10:23:59 +01:00
Hugo Locurcio
9766486aaf
Document performance limitations with CSG nodes, link to tutorial
(cherry picked from commit 1b505ef8ca)
2022-02-17 10:23:44 +01:00
kleonc
a5b85c331e
SpriteFramesEditor Fix crash when selecting non-Texture file for splitting
(cherry picked from commit 87b4db9e63)
2022-02-17 10:23:29 +01:00
Raul Santos
e9f93155c6
Attach mono thread before getting nativeName field
In order to access the `nativeName` constant field from a C# class, the
mono scope thread must be attached or the mono domain will be null.

(cherry picked from commit eddb99b9be)
2022-02-17 10:23:15 +01:00
Omar El Sheikh
ca67b2bce1
Re-fix Disabling Half Floats on iOS
A previous change missed setting a flag that specified whether half
floats were being used on vertex positions when in the GLES2 driver

This caused errors with the vertex buffer when platforms (specifically
iOS) which do not properly support half float vertex attributes on
GLES2, try to remapt the vertex buffer to stop using half floats
(in this case that remapping never happened and caused artifacts)

Re-enable setting that flag to fix rendering issues on these platforms

(cherry picked from commit bf5b2f48e6)
2022-02-17 10:23:02 +01:00
lawnjelly
718132b694
Add fflush to error macros
CRASH_NOW and DEV_ASSERT macros would previously terminate before outputting any error messages.
This PR ensures calling fflush for stdout before terminating.

(cherry picked from commit ee979d321a)
2022-02-17 10:22:49 +01:00
Haoyu Qiu
4ab57389a5
Fix PoolByteArray.decompress_dynamic return value and memleak
(cherry picked from commit de47cb0c5b)
2022-02-17 10:22:33 +01:00
Haoyu Qiu
eb9a847566
Revert "Fix ViewportPreview upside-down in 3.x."
This reverts commit 1426df66a8.

(cherry picked from commit aeb9925615)
2022-02-17 10:22:21 +01:00
Rémi Verschelde
269c585f08
Server: Fix skip libstdc++ static linking on macOS
Fixes #48161.

(cherry picked from commit 94dd9c26dd)
2022-02-17 10:22:06 +01:00
Rémi Verschelde
e33a73d66e
EditorProperty: Fix range hint parsing with optional step
This could lead to have a step of 0 when parsing e.g. "1,10,is_greater".

(cherry picked from commit 80306cc88a)
2022-02-17 10:21:54 +01:00
lawnjelly
6c1f158459
BVH - fix leaking leaves
In the BVH leaf nodes are a combination of two objects - a node object, and a leaf object. Testing revealed that in some situations node objects could be freed without also freeing the paired leaf object. This closes this bug.

(cherry picked from commit 90bea27e82)
2022-02-17 10:20:50 +01:00
Rémi Verschelde
1891c8e172
doc: Fixup invalid use of $DOCS_URL in 3.4 branch 2022-02-04 16:07:47 +01:00
Fabio Alessandrelli
c09b8a9997
Revert "[HTML5] Better engine config parsing."
This reverts commit 2f509f1b12.

Breaks closure compiler builds.
And adds a warning for future readers.

(cherry picked from commit 6d3d17651a)
2022-02-04 00:17:30 +01:00
kleonc
b2e5e7cd89
TextureButton Fix logic for drawing only the focus texture
(cherry picked from commit 078b8c25ce)
2022-02-04 00:17:09 +01:00
bruvzg
894b6d5049
Fix iOS export with manually specified signing/provisioning data.
(cherry picked from commit 57db989a97)
2022-02-02 23:19:21 +01:00
SnailRhymer
f4814ab711
Backport improved look_at docs and errors
Take extra constraint info and function description from Node3D.look_at to improve Spatial.look_at docs.
Add an explicit error for up == 0

(cherry picked from commit 83298da9b8)
2022-02-02 23:13:26 +01:00
lawnjelly
48a4741740
Portals - fix DYNAMIC particle systems
A regression had occurred whereby particle systems in DYNAMIC mode weren't added to the room correctly.
This PR recognise the case and bypasses the function to retrieve geometry, as retrieving the geometry is not necessary for DYNAMIC objects as they should not affect the room bound. Their AABB will be retrieved during gameplay rather than once off at level conversion.

(cherry picked from commit d86061d7ae)
2022-02-02 23:13:10 +01:00
Hugo Locurcio
97ee014434
Clarify documentation for Rect2's has_no_area()
(cherry picked from commit 7f00317f67)
2022-02-02 23:12:42 +01:00
Rémi Verschelde
717cb07304
Windows: Fix GCC -fpermissive error with 'pck' section workaround
Follow-up to #57450.

(cherry picked from commit 5a1f42b322)
2022-02-01 12:20:50 +01:00
Rémi Verschelde
caaa648e86
Merge pull request #57489 from akien-mga/3.4-cherrypicks 2022-01-31 22:54:02 +01:00
Fabio Alessandrelli
147e2b7c92
[HTML5] Fix gamepad samples not being properly reset.
(cherry picked from commit 93968e1451)
2022-01-31 21:45:51 +01:00
Fabio Alessandrelli
18d676636d
[HTML5] Better engine config parsing.
(cherry picked from commit 2f509f1b12)
2022-01-31 21:45:44 +01:00
Ryan Roden-Corrent
7dc7f31825
Merge create_physical_skeleton undo entries.
Pressing `ctrl+z` after clicking "Create Physical Skeleton" will now
undo the creation of all physical bones by that operation.

Previously undo would remove one bone at a time.

Fixes https://github.com/godotengine/godot/issues/55351.

(cherry picked from commit c9cce53983)
2022-01-31 21:32:28 +01:00
Bartłomiej T. Listwon
3cae7a7df5
Prevent LTCG (MSVC LTO) from removing "pck" section
(cherry picked from commit e4bde938a1)
2022-01-31 20:40:31 +01:00
Ev01
7753688f88
Fixes invalid links to tutorials in AudioStreamGenerator, AudioStreamGeneratorPlayback, and AudioEffectSpectrumAnalyzer class references
(cherry picked from commit b6c543179c)
2022-01-31 20:40:04 +01:00
Ignacio Roldán Etcheverry
6d5f8cd3ca
Mono/C#: Fix Android AAB export failing to load native libs
By default, when installing from Android App Bundles the native
libraries are not extracted. They are loaded directly from the APK.
See: https://stackoverflow.com/a/56551499

Passing only the file name to dlopen, without the location, makes it
search the native library in all locations, including inside the apk.

(cherry picked from commit c7f716e2ea)
2022-01-31 20:39:31 +01:00
Hugo Locurcio
9827d620e3
Improve documentation for ReflectionProbe.max_distance property
(cherry picked from commit c35968e276)
2022-01-31 20:38:55 +01:00
Fredia Huya-Kouadio
3b4be5741e
Fix XR Android manifest metadata
- Adds the parameters for supported Meta devices, which is required to access some device specific capabilities
- Remove the 'com.samsung.android.vr.application.mode' metadata when we're not using the VrApi plugin

(cherry picked from commit 5deeb38a70)
2022-01-31 20:38:43 +01:00
lawnjelly
ef2f631aa9
Portals - Fix gameplay monitor ticking
Due to an optimization to prevent processing except when camera rooms changed, the ticking synchronization and updating of previous and current lists could get out of sync for affected objects, leading to missing gameplay notifications.

This PR adds new paths to properly support and synchronize objects in this "room based" path.

(cherry picked from commit 38240fd0c8)
2022-01-31 20:38:32 +01:00
Haoyu Qiu
b54987760a
Store ObjectID instead of raw pointer for Shape Owners
(cherry picked from commit fa96505418)
2022-01-31 20:38:20 +01:00
Rémi Verschelde
2665fc1439
stb_vorbis: Add clearer error messages when failing to import OGG file
Fixes #56895.

(cherry picked from commit 8109902492)
2022-01-31 20:38:01 +01:00
kobewi
f0cbd12ea8
Fix TextureButton focus texture logic
(cherry picked from commit 11111d997e)
2022-01-29 10:24:58 +01:00
Rémi Verschelde
4a83366185
Merge pull request #57217 from akien-mga/3.4-cherrypicks 2022-01-25 19:47:43 +01:00