Commit Graph

31970 Commits

Author SHA1 Message Date
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
Haoyu Qiu fbff61dfe9
Fix memory leak when move to trash fails on Linux
(cherry picked from commit 8be49838b3)
2022-01-25 18:56:36 +01:00
rafallus 9540c18c06
Make sure `MeshLibrary` shape array has correct number of elements
(cherry picked from commit 5f8b292ad3)
2022-01-25 18:56:36 +01:00
Haoyu Qiu c9f3719417
Fix crash after renaming an animation node
(cherry picked from commit 5ea4a8b421)
2022-01-25 18:56:36 +01:00
Wysocki Patryk db1105d4b3
Expose AnimationNodeOneShot::mix_mode as a property
Fixes #23458.

(cherry picked from commit f16c483c9d)
2022-01-25 18:56:36 +01:00
Rémi Verschelde 055fb93e56
doc: Clarify expected type of `Object *` parameters in Tree methods
They're meant to be `TreeItem *` but this can't be bound in Variant.

Fixes #20538.

(cherry picked from commit 81f2ce4e46)
2022-01-25 18:52:17 +01:00
Navdeep Singh Rathore a182b65455
Added the smart word wrap property to preview label
(cherry picked from commit 0b55eedc52)
2022-01-25 18:51:58 +01:00
SnailRhymer ad12f54778
Add clarification to tile_set_modulate
To resolve 45677, adds a note to tile_set_modulate clarifying how to use tile_modulate in shaders.

(cherry picked from commit 6ac800aab7)
2022-01-25 18:50:48 +01:00
Mack 2e8334fa00
Fixed accessing a null MeshInstance object in BakedLightmap instead of the GeometryInstance
(cherry picked from commit 36c7110c1b)
2022-01-25 18:50:35 +01:00
Max Hilbrunner f00260f1b7
[3.x] Fix make_rst.py on Windows
(cherry picked from commit 54de063890)
2022-01-25 18:49:52 +01:00
Max Hilbrunner a59bf9a3b2
Fix GDNative docs links
(cherry picked from commit 6cecb2210e)
2022-01-25 18:49:37 +01:00
Hugo Locurcio 7e32d42968
Document that soft bodies should be avoided for gameplay purposes
(cherry picked from commit 94b1ae5599)
2022-01-25 18:49:00 +01:00
LoserFox d218356ae8
Fix some errors in Environment documentation
Co-authored-by: Clay John <claynjohn@gmail.com>
Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
(cherry picked from commit 0af26280b6)
2022-01-25 18:48:48 +01:00
Hugo Locurcio c6ed1ef342
Improve CSGPolygon3D documentation
- Describe why polygon triangulation usually fails in the error message.

(cherry picked from commit 1e1fb145b3)
2022-01-25 18:48:30 +01:00
lawnjelly 579c6238bb
Portals - fix gameplay monitor unloading
The gameplay monitor wasn't being unloaded correctly in between levels. This meant that exit signals were not being sent, and entered signals for the new level were being missed.

This PR sends appropriate exit signals on unloading, and clear the data.

(cherry picked from commit 6c1e243fa2)
2022-01-25 18:48:18 +01:00
floppyhammer 37489bcd0e
Fix nine patch of circular TextureProgressBar
(cherry picked from commit f9b1ce0922)
2022-01-25 18:47:55 +01:00
skyace65 4f3cc52426
Better explain JSON print indent parameter (3.x)
(cherry picked from commit c540a17efc)
2022-01-25 18:47:24 +01:00
Ricardo Buring 51911952c5
Fix "Convert to MeshLibrary" not respecting collision transforms
(cherry picked from commit 025d7b9332)
2022-01-25 18:45:58 +01:00
rafallus 92073c2fcd
Fix `input_ray_pickable` documentation for `CollisionObject3D`
(cherry picked from commit ba7d3f8331)
2022-01-25 18:45:35 +01:00
jmb462 e8f3dad898
Prevent renaming to an unkown extension from FileSystem dock.
(cherry picked from commit c24433f500)
2022-01-25 18:45:17 +01:00
kobewi 8db41cf94d
Clarify to_float() and to_int() methods
(cherry picked from commit 7bb682651f)
2022-01-25 18:44:49 +01:00
bruvzg d0d1e81696
[Documentation] Add instruction how to execute built-in commands of various shells.
(cherry picked from commit 9faf1e027a)
2022-01-25 18:44:25 +01:00
Haoyu Qiu 9e7bf8fa73
Fix invalid read when using LightOccluder2D
(cherry picked from commit 7870cf24f2)
2022-01-25 18:43:55 +01:00