Commit graph

29898 commits

Author SHA1 Message Date
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
Rémi Verschelde 3698298326
Update changelog for 3.3.1-stable 2021-05-18 13:02:25 +02:00
Rémi Verschelde bcedd09742
i18n: Sync translations with Weblate 2021-05-18 12:09:09 +02:00
Sonoracpp d006f50db3
Disable GIProbe emission when disabled on a material
Fixes https://github.com/godotengine/godot/issues/48230

(cherry picked from commit 0b723358bb)
2021-05-18 11:58:45 +02:00
Rémi Verschelde c3732f0da8
Revert "Tweak lightmapper warning message to mention Rosetta emulation on macOS"
This reverts commit 1e3166115a.

This is no longer needed after #48455.
2021-05-18 11:58:45 +02:00
kleonc 628265be44
Fix crash after disabling plugin using set_force_draw_over_forwarding_enabled()
(cherry picked from commit 5a8314016a)
2021-05-17 13:13:50 +02:00
kleonc 5445d04fbe
Fix accessing scene tree without checking: MeshInstance3D::create_debug_tangents, GIProbe::bake
(cherry picked from commit ef589a7cd3)
2021-05-17 13:13:24 +02:00
John Wigg 4601328542
Fix normals of PrismMesh
(cherry picked from commit c8e402324e)
2021-05-17 13:13:02 +02:00
Haoyu Qiu a2b4093a50
Fix Tree::get_column_at_position crash
(cherry picked from commit c8efcf81d2)
2021-05-17 13:12:56 +02:00
Hugo Locurcio 757c2c0e77
Add "Support Godot Development" option to the editor's Help menu
(cherry picked from commit 3eae2f9c6d)
2021-05-17 13:12:38 +02:00
Haoyu Qiu c804baf6a9
Fixes display of programmatically created value in remote inspector
(cherry picked from commit e3b7b861b0)
2021-05-17 13:02:57 +02:00
Rémi Verschelde f6c29d1cf5
i18n: Sync translations with Weblate 2021-05-14 13:22:30 +02:00
Rémi Verschelde 26efa5c690
Update AUTHORS and DONORS list
New contributor added to AUTHORS:
@kleonc

Thanks to all contributors and donors for making Godot possible!

(cherry picked from commit 44ab5a0471)
2021-05-14 13:19:16 +02:00
Zae 164fd19bb5
Fix zip file opening twice
(cherry picked from commit f403e62df1)
2021-05-14 13:16:26 +02:00
Brennen Green 77e3b51627
Manually unpacked normal mapping to fix issue with refraction being offset rather than distorted.
(cherry picked from commit 31f2d946ad)
2021-05-14 11:36:17 +02:00
Yuri Sizov 75cd0dc950
Keep custom editor theme when changing editor settings
(cherry picked from commit 56aedcee17)
2021-05-14 11:05:50 +02:00
Daniel Lungaro 2784697b96
Remove plugin from enabled if there's an error
inform user in warning message

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>

Refactor remove plugin from enabled

(cherry picked from commit 2bae31a4df)
2021-05-14 11:05:42 +02:00
Eoin O'Neill 70a2b746a3
Attempt to fix rich text label effects processing even when
the node is invisible.

ISSUE:47687
(cherry picked from commit c4f976b38b)
2021-05-14 10:18:55 +02:00
R. Alex Hofer 07870cf7d1
Handle having no sinks in the PulseAudio driver.
Also make PulseAudio errors more verbose.

(cherry picked from commit 65a10f4db5)
2021-05-14 10:18:42 +02:00
Morris Tabor 4b221df06d
fix misaligned loads in bmp loader
(cherry picked from commit 89a8bbda0a)
2021-05-13 23:19:51 +02:00
Rémi Verschelde 9602dfad90
VisualScript: Fix wrongly setting default value on property hint change
PR #45096 put the backported code in the wrong case, it should be for `type`
and not for `hint`.

Also synced `hint` enum values with `Object.PropertyHint`.

Fixes #48698.

(cherry picked from commit c7182512dd)
2021-05-13 23:17:07 +02:00
davidh 025a380d1f
Check for valid DynamicFontData before duplicate
(cherry picked from commit ae2bc66eae)
2021-05-13 23:16:20 +02:00
Yuri Sizov 57f271f03a
Fix EditorPropertyEasing capturing drag events originated outside of it
(cherry picked from commit 31db95b048)
2021-05-13 23:16:06 +02:00
Rémi Verschelde 746b9b03dd
CI: Update JavaScript linter deps with known security vulnerabilities
jsdoc has no new release so I'm tracking this PR:
https://github.com/jsdoc/jsdoc/pull/1906

(cherry picked from commit e743b6b24c)
2021-05-13 23:15:19 +02:00
lawnjelly 3624abd613
Batching - fallback for 2d skinning with unrigged polys.
In the legacy renderer unrigged polys would display with no transform applied, whereas the software skinning didn't deal with these at all (outputted them with position zero). This PR simply copies the source to destination verts and replicates the legacy behaviour.

(cherry picked from commit 3c68a6d37f)
2021-05-13 23:14:51 +02:00
Hugo Locurcio c93b8be3b6
Fix Ubuntu clang-format version detection in the pre-commit hook
(cherry picked from commit 61aa09097f)
2021-05-10 17:47:36 +02:00
Rémi Verschelde d1ac177f98
TileSet: Fix signal disconnect error in some situation
Fixes second issue in #45938.

Co-authored-by: kleonc <9283098+kleonc@users.noreply.github.com>
(cherry picked from commit 6e920d0c14)
2021-05-10 17:13:58 +02:00
trollodel 140cf0f2cb
Create CollisionObject debug shapes using VS
(cherry picked from commit 60ee8c9639)
2021-05-09 18:58:33 +02:00
Kyle 5193c3c8eb
Add ctrl+shift+a to instance scene in scenetree dock
Adds another key shortcut to instance a scene in the scentree dock. Complements ctrl+a to add a node.

(cherry picked from commit ea5445655c)
2021-05-09 17:29:53 +02:00
Rémi Verschelde 6f780d7e3a
TileSet: Improve error message for invalid IDs
Supersedes #47321.
Fixes #47313.

(cherry picked from commit ee86dc3011)
2021-05-09 17:29:53 +02:00
Hugo Locurcio dd20139901
Allow negative contrast values in the editor theme settings
When using a negative contrast value, the base color will be lightened
to create the derivative colors instead of being darkened.

This can lead to better-looking themes, especially for light themes.

(cherry picked from commit e7e2ef0767)
2021-05-09 16:38:18 +02:00
Hugo Locurcio 3299600093
Document caveats of OS.get_unique_id()
(cherry picked from commit 7350f90c57)
2021-05-09 16:29:14 +02:00
Hugo Locurcio 7eacb604b1
Fix EditorPropertyResource focus outline being drawn behind the preview
(cherry picked from commit 0b47f1be8c)
2021-05-09 16:28:56 +02:00
Fabio Alessandrelli 0a7193c5f4
[HTML5] Fix target_fps when window loses focus.
We don't get updates when the window is unfocused/minimized, so we must
detect the situation where the counted ticks start drifting away
resulting in more frames drawn than needed.
This commit adds a check to ensure that the target ticks do not drift
away more than one second.

(cherry picked from commit a1fe6d6899)
2021-05-09 16:28:22 +02:00
Hugo Locurcio 3fc59fbcc7
Tweak the setting hint for the custom editor theme setting
The custom editor theme is only visible after restarting the editor.

(cherry picked from commit 027301fec7)
2021-05-09 16:28:04 +02:00
Fabio Alessandrelli 488f448fbb
[HTML5] Remove "fixed-size.html".
No longer used in 3.3+.

(cherry picked from commit 3faf8d6e40)
2021-05-09 16:27:48 +02:00
Kyle b622a9e359
Remove extra separator
Removes an extra separator when Scene Tree Editing is disabled. Discussed in #48518

(cherry picked from commit e168baf433)
2021-05-09 16:27:26 +02:00
Kyle e6cbb4d460
Fixed cut/copy/paste visibility
Fixes #48514 by moving the visibility of these buttons into their own if statement that depends on if scene tree editing is allowed. Previously it was under the script editing setting which is unexpected as it works with nodes and the scene tree.

(cherry picked from commit 10d5d4d3cd)
2021-05-09 16:27:10 +02:00