Commit graph

29855 commits

Author SHA1 Message Date
azagaya 1114c248b1 Fix vertical slider grabber_area height calculation 2021-06-14 15:51:12 -03:00
Hugo Locurcio 018ca6b1c4
Make it possible to copy the Godot version identifier by clicking it
This closes #24317.

(cherry picked from commit 1ceb603de8)
2021-06-08 10:48:29 +02:00
Arthur Bikmullin ca465ef54d
Fixed missed IDHandler dependency in GodotFetch
(cherry picked from commit ee2bea7a86)
2021-06-08 10:21:08 +02:00
Hugo Locurcio 5738d6ee6e
Allow clang-format 12 in the pre-commit hook
clang-format 12's formatting is identical to clang-format 11's.

(cherry picked from commit d74413ebd0)
2021-06-07 22:56:01 +02:00
PouleyKetchoupp fab9c19d2e
Fix uninitialized members in physics query results
(cherry picked from commit c6bd0fd0f7)
2021-06-07 22:56:01 +02:00
Rémi Verschelde 089fde5c59
FileAccess: Don't err in store_buffer with buffer of size 0
The error check was added for `FileAccessUnix` but it's not an error when both
`p_src` and `p_length` are zero.

Added correct error checks to all implementations to prevent the actual
erroneous case: `p_src` is nullptr but `p_length > 0` (risk of null pointer
indexing).

Fixes #33564.

(cherry picked from commit 01d5c463be)
2021-06-07 22:56:01 +02:00
Marcel Admiraal 6a98050afa
Don't install Android NDK in CI
(cherry picked from commit a81449be6d)
2021-06-07 22:52:35 +02:00
Marcel Admiraal b45fb53896
Update Gradle archiveName and destinationDir properties
(cherry picked from commit 78e791045c)
2021-06-07 22:52:02 +02:00
Nick Huelin aa4afee320
Edit "quit()" method description in SceneTree
Updated the `SceneTree.quit()` method to include a note that on iOS this method won't work as apps are expected to be closed via the Home button, not programmatically.

(cherry picked from commit c63af17a31)
2021-06-07 22:50:12 +02:00
kobewi e5dc7a06a9
Improve sort_custom() description
(cherry picked from commit 48f0368ddc)
2021-06-07 22:49:37 +02:00
Marcel Admiraal 3c55a9c210
Fix game controllers ignoring the last listed button
(cherry picked from commit 18825ad4ff)
2021-06-07 22:40:42 +02:00
Hugo Locurcio f7e9467441
Document Navigation.get_simple_path() often returning non-optimal results
(cherry picked from commit 8e4afdc71d)
2021-06-07 22:38:55 +02:00
RoniPerson f1ca7c5e98
Added documentation to some add_*_plugin methods
Added documentation to some `add_*_plugin` methods and the corresponding `remove_*_plugin` methods.
Added an example of how to register a plugin to `add_inspector_plugin` and linked to it in the other methods.

(cherry picked from commit e849157e07)

Proofread add_*_plugin/remove_*_plugin descriptions in EditorPlugin

(cherry picked from commit 21f0961610)
2021-06-07 22:38:05 +02:00
bruvzg 05b72c2e9b
[3.x] Fix visibility issue with zoom label
(cherry picked from commit 36ca3fea96)
2021-06-03 12:42:45 +02:00
Hugo Locurcio c45ce8b6bb
Uncap the range for gravity and change the slider hints
There's not really a reason to cap the gravity amount, and we can also
give better hints for the range (for 3D, ±32 is much more sensible
than ±1024).

(cherry picked from commit e0facdaf61)
2021-06-03 12:42:30 +02:00
Jonas Bernemann 5b3f94e807
Fix overflow in export template manager
Fixes the possible overflow of buttons after downloading the
current export template with using custom fonts or custom font size.

Fix #48826

(cherry picked from commit 4659b2ad4a)
2021-06-03 12:42:08 +02:00
Pedro J. Estébanez 843e6bbd6b
Fix crash when using ALSA MIDI with PulseAudio
(cherry picked from commit 958d79828b)
2021-06-03 12:41:29 +02:00
kleonc 7674015231
TextureRegionEditor Fix not updating on editing region with autoslice cached
(cherry picked from commit 019c99e538)
2021-06-03 12:41:10 +02:00
Nathaniel Morihara a34c0a9248
Exporting: Android Debug Keystore Warnings
(cherry picked from commit 2cf19293ba)
2021-06-03 12:40:28 +02:00
Rémi Verschelde 0446cf487f
i18n: Sync translations with Weblate 2021-06-02 11:09:24 +02:00
Lyuma b9e8fa4504
gltf: Fix mesh nodes which are also bones for 3.x
Fix issue when two skeletons end up directly parented.
Prevent animating TRS for skinned Mesh node.
Fix animating weights on meshes with targets but no weights.

(cherry picked from commit a330b6829f)
2021-06-01 12:57:43 +02:00
Haoyu Qiu 41206078dd
Check cache_parent_physical_bone when rebuilding parent cache
(cherry picked from commit 96fe795bdb)
2021-06-01 12:56:25 +02:00
Hugo Locurcio 593b3272f6
Document Resource.duplicate() only copying exported variables' values
(cherry picked from commit 2ba893e3ce)
2021-05-31 13:43:20 +02:00
Arkadiusz Marcin Kołek 1f2e0c67b0
Avoid division by zero when calculating inertias for bodies with colliders without areas.
(cherry picked from commit e347baddf3)
2021-05-31 12:57:26 +02:00
Paweł Fertyk 3b29aac348
Check for _language in PluginScript.instance_has
(cherry picked from commit 4b25892501)
2021-05-31 12:46:40 +02:00
bruvzg 65d9992fb6
Fix Directory::get_space_left() result on macOS and Linux.
(cherry picked from commit 1d7a63fb8f)
2021-05-31 12:42:27 +02:00
Lynx 2ce5515762
Fix not updating fonts when parent theme changes
Reparsing the bbcode content when we receieve a theme changed
notification just like we already do in ENTER_TREE.

Resolves #49089

(cherry picked from commit 1b7c2a1428)
2021-05-31 12:41:38 +02:00
Aaron Franke f901049a0d
[3.x] Fix Camera FOV documentation
(cherry picked from commit 753d0fca1d)
2021-05-31 12:39:57 +02:00
David Cambré d043b5d71c
The built in function math/seed was missing the sequenceport.
(cherry picked from commit d7205ef1d0)
2021-05-31 12:04:04 +02:00
lawnjelly 0d5be76f15
Fix canvas rect bound calculation
It turns out the calculation of the bounding rect for canvas items has a nasty bug. When a transform is applied (especially in a custom draw), in the renderer this extra matrix is applied to all later commands in the canvas item. However in the calculation of the bound, the transform is only applied to the first command following the transform.

This PR fixes this inconsistency.

(cherry picked from commit 6e022a382d)
2021-05-31 11:34:24 +02:00
Marcel Admiraal 3574c87888
Update EditorResourcePreview queue_*() documentation
(cherry picked from commit 72446bab1b)
2021-05-31 11:34:13 +02:00
PouleyKetchoupp b9492b2659
Fix logic for showing tilemap debug collision
In editor: only when show_collision property is enabled
In game: only when 'Visible collision shapes' is enabled

(cherry picked from commit 114da550ec)
2021-05-31 11:34:00 +02:00
Paweł Fertyk c680057dad
Return error when decompressing empty buffer
(cherry picked from commit f563cabb4e)
2021-05-31 11:33:34 +02:00
lawnjelly da2f17ae19
BVH - fix stale current_tree in deactivate function
Changes passing of current_tree from a member variable to a function argument, making bugs due to stale state less likely.

Fix a bug in deactivate where current_tree variable was stale. This may have resulted in visual anomalies.

(cherry picked from commit 0a350845d5)
2021-05-31 11:32:04 +02:00
TwistedTwigleg 59745c9286
SkeletonIK: Fixed issue where bones become detached if multiple SkeletonIK nodes are used
(cherry picked from commit ec7b72e81d)
2021-05-31 11:28:31 +02:00
Hugo Locurcio c3f2eb9291
Remove duplicate orientation settings in the iOS export preset
The screen orientation is now sourced from the Project Settings
like it is done for Android already.

(cherry picked from commit 914b5dc525)
2021-05-31 11:27:26 +02:00
Fabio Alessandrelli d5089c4e4e
[Net] Implement String::parse_url for parsing URLs.
Splits the URL into (scheme, host, port, path).
Supports both literal IPv4 and IPv6.
Strip credentials when present (e.g. http://user:pass@example.com/).

Use that function in both HTTPRequest and WebSocketClient.

(cherry picked from commit 3bb40669d5)
2021-05-31 11:14:34 +02:00
Rémi Verschelde 30dfb51048
Linux: Fix embree unbundling on aarch64
Embree supports aarch64 since version 3.13.0.

(cherry picked from commit 752ed768fa)
2021-05-31 11:13:38 +02:00
Rémi Verschelde 3117f04759
Bump version to 3.3.3-rc 2021-05-24 18:25:08 +02:00
Rémi Verschelde 7610409b8a
Bump version to 3.3.2-stable
Fixes a few regressions in 3.3.1-stable, and includes some additional bug
fixes. See the CHANGELOG.md for details.

Thanks to all contributors! <3
2021-05-24 13:39:13 +02:00
Rémi Verschelde bc5ac12bdb
Update changelog for 3.3.2-stable 2021-05-24 13:39:13 +02:00
Rémi Verschelde 2c99306e20
OS: Better validation of invalid input for get_unix_time_from_datetime
Default missing keys to Unix time 0 (1970-01-01 at 00:00:00 UTC).
Abort if year <= 0, this is not supported by the current algorithm.

Prevents an infinite loop further down.

Fixes #49022.

(cherry picked from commit 62efa30ed2)
2021-05-24 13:39:13 +02:00
bruvzg 2c520fb732
[macOS] Allow "on top" windows to enter full-screen mode.
(cherry picked from commit 31be8ae8e9)
2021-05-24 12:59:36 +02:00
lawnjelly 2857840754
Batching - fix item_batch_flags stale state
Fixes bdata.joined_item_batch_flags not being kept up to date during the rendering pass.

(cherry picked from commit 17a51b3a9e)
2021-05-24 12:58:59 +02:00
Zae f87096ecea
Fix duplicate close files when deconstructing ZipArchive
(cherry picked from commit a65dac3fa7)
2021-05-24 12:58:36 +02:00
trollodel 5b8b3f645e
Fix crash on debug shapes update if CollisionObject is not in tree
Also fix ConcavePolygonShape not emitting the changed signal

(cherry picked from commit 7043d6d1c6)
2021-05-22 19:12:39 +02:00
Haoyu Qiu 20dfa4ceaa
Fix STL to Godot type convertion of polypartition
(cherry picked from commit d16bef8b55)
2021-05-22 19:12:22 +02:00
Haoyu Qiu 738d0b7f63
Fix editor crash when exporting profiler data
(cherry picked from commit be79bdc8ab)
2021-05-22 19:11:57 +02:00
Rémi Verschelde 7678e73398
Dist: Add macOS entitlements files for editor code signing
These are the entitlements we define for official macOS editor builds since
Godot 3.3.

Users making custom builds of the engine can use those files with `codesign` to
sign their own builds. E.g.:
```
codesign --force --timestamp \
  --options=runtime --entitlements editor.entitlements \
  -s <your key> -v osx_template.app
```

(cherry picked from commit 6999e332e4)
2021-05-22 19:10:53 +02:00
Lyuma d36ab91461
Fix incorrect skin deduplication when using named binds
(cherry picked from commit 60f620411e)
2021-05-22 19:10:32 +02:00