Commit Graph

29735 Commits

Author SHA1 Message Date
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
Lyuma 997f8f5d29
gltf: Fail gracefully when a mesh instance fails.
(cherry picked from commit 5a9eee6b1a)
2021-05-22 19:10:15 +02:00
K. S. Ernest (iFire) Lee 2ec691e274
When one invalid image fails, it should only fail that single image.
Move to a more graceful degradation 3d asset import model.

(cherry picked from commit a81f4dd5a7)
2021-05-22 19:09:53 +02:00
jfons 01ce818c7b
Fix swapped front/rear directions in viewport rotation control.
(cherry picked from commit e70e33ddcf)
2021-05-22 19:09:32 +02:00
Haoyu Qiu e14d5062f7
Fix crash when using get_available_chars with invalid DynamicFontData
(cherry picked from commit bec1dcb6f6)
2021-05-22 19:09:11 +02:00
Hugo Locurcio 418e044789
Remove high radiance sizes from the editor due to issues on specific GPUs
These values can still be set by code, but are no longer presented in
the editor.

(cherry picked from commit 8d9cef3726)
2021-05-22 19:08:35 +02:00
Hugo Locurcio 274e251d30
Print a warning when importing a repeating NPOT texture in a GLES2 project
Repeating NPOT textures are not guaranteed to be displayed correctly
in GLES2, since the specification does not mandate support for it.

The warning is also displayed in GLES3 projects that are configured
to allow falling back to GLES2.

(cherry picked from commit 20f79287cd)
2021-05-22 19:08:07 +02:00
Rémi Verschelde c1827b872d
Merge pull request #48888 from akien-mga/3.3-embree-fix-mingw-again
[3.3] embree: Re-apply custom fix for MinGW crash
2021-05-20 18:03:20 +02:00
Rémi Verschelde 9b8a099bd1
embree: Re-apply custom fix for MinGW crash
Re-do of #45380 lost in #48455.
Rediff patch on current embree-aarch64 upstream.

Fixes #48822.
2021-05-20 14:54:33 +02:00
Marvin Ewald a1af387177
Allow warning-ignore in same line
(cherry picked from commit 3715ea268f)
2021-05-20 14:37:10 +02:00
Rémi Verschelde 337ef03958
Fix typos with codespell
Using codespell 2.0.0.

Method:
```
$ cat > ../godot-word-whitelist.txt << EOF
ang
curvelinear
dof
doubleclick
fave
findn
GIRD
leapyear
lod
merchantibility
nd
numer
ois
ony
que
seeked
synching
te
uint
unselect
webp
EOF

$ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"
$ git diff // undo unwanted changes
```

(cherry picked from commit eb78f80f03)
2021-05-20 14:36:39 +02:00
Fabio Alessandrelli 066ceefcaf
[Doc] Remove reference to UNIX sockets in StreamPeer.
That class can be used as a base to implement them, but there is no
actual implementation for it in Godot.

(cherry picked from commit e858f7c2ea)
2021-05-20 14:36:08 +02:00
kleonc 5602deeb0f
Document valid range of Node2D.z_index
(cherry picked from commit 4871bf4668)
2021-05-20 14:35:51 +02:00
Rémi Verschelde 4ed50733fd
Android: Remove `-fno-integrated-as`, it can break arm64v8 build
We found that this flag causes this error on PR #48812 which does not add any
fancy inline assembly:
```
/tmp/tile_set-ce236a.s: Assembler messages:
/tmp/tile_set-ce236a.s:34676: Error: selected processor does not support `bfc x0,#32,#32'
clang++: error: assembler command failed with exit code 1 (use -v to see invocation)
```

That flag is mentioned in various errors related to assembler failures on
arm64v8 with Clang from the Android NDK.

It was added in Godot in #6958 when migrating from GCC to Clang, and is indeed
referenced in the NDK's Clang migration guide:
https://android.googlesource.com/platform/ndk/+/master/docs/ClangMigration.md

> Especially for ARM and ARM64, Clang is much stricter about assembler rules
> than GCC/GAS. Use `-fno-integrated-as` if Clang reports errors in inline
> assembly or assembly files that you don't wish to modernize.

We don't get those errors nowadays so it seems the flag is no longer needed.

(cherry picked from commit 23f7c75126)
2021-05-19 19:46:43 +02:00
Haoyu Qiu f89120b895
Fix ragdoll simulation when parent was readded to scene
(cherry picked from commit a701927d89)
2021-05-19 19:45:35 +02:00
Hugo Locurcio 7339de9dbb
Increase the TileSet editor's snap step to 1024
This also tweaks the autotile bitmaks mode property hint string.

(cherry picked from commit a9df687db6)
2021-05-19 15:28:13 +02:00
Rémi Verschelde 80f74aac0f
CI: Install Android NDK 21.4.7075529
This is the version mandated by Godot's gradle setup anyway so it would get
installed when running gradlew. Now we pre-install the correct version.

(cherry picked from commit 7eaf4d445d)
2021-05-19 15:23:04 +02:00
Bartłomiej T. Listwon 2df6731281
pywin32 is no longer necessary for SCons install
https://github.com/SCons/scons/releases/tag/4.1.0
(cherry picked from commit b6f16671ee)
2021-05-19 15:22:28 +02:00
Fabio Alessandrelli af6c50b0e5
[HTML5] Fix GDNative compilation with emcc 2.0.19+
Add `WARN_ON_UNDEFINED_SYMBOLS=0` for the main module (which defines
`godot_js_main` as extern coming from the "side" module, i.e. the main
Godot binary).

(cherry picked from commit 14c057eab6)
2021-05-19 15:22:10 +02:00
Rémi Verschelde 0f3f706ca6
Bump version to 3.3.2-rc 2021-05-19 14:56:50 +02:00
Rémi Verschelde 4da4277dc9
Bump version to 3.3.1-stable
Almost exclusively bug fixes, see the CHANGELOG.md for details.

Thanks to all contributors! <3
2021-05-18 13:03:47 +02:00