Commit graph

29938 commits

Author SHA1 Message Date
Hugo Locurcio aa0de1c6e0
Improve documentation for String.get_extension()
(cherry picked from commit 09eb98c530)
2021-09-21 14:26:47 +02:00
Rémi Verschelde 052ca31a36
HTML5: Handle GODOT_VERSION_STATUS env var in @GODOT_VERSION@
Follow-up to #51002.

(cherry picked from commit 16f49d4b29)
2021-09-21 14:26:15 +02:00
Tom Coxon a2f3decb88
Prevent shaders from generating code before the constructor finishes.
Fixes #43733: "creating SpatialMaterial in a separate thread creates invalid
shaders (temporarily)."

The bug occurred because various setters called in materials' constructors add
materials to queues that are processed on the main thread. This means that
when the materials are created in another thread, they can be processed on the
main thread before the constructor has finished.

The fix adds a flag to affected materials that prevents them from being added
to the queue until their constructors have finished initialising all the
members.

(cherry picked from commit 9e9bac1549)
2021-09-21 13:53:31 +02:00
Hugo Locurcio 0ac9c9906b
Document Object.get_class()/is_class() ignores class_name declaration
(cherry picked from commit a15847e5ca)
2021-09-21 11:02:15 +02:00
Hugo Locurcio 2cd5516672
Improve documentation for Engine.get_idle_frames/get_physics_frames()
(cherry picked from commit 31c07bcca7)
2021-09-21 10:52:40 +02:00
Hugo Locurcio 62953c4fae
Document that ConfigFiles can use any file extension
The file extension given to a ConfigFile has no impact on its
formatting or behavior.

(cherry picked from commit 9c6ae95cb2)
2021-09-20 16:21:42 +02:00
Lorenzo Cerqua 0e27430251
Add an outlined version of logo.png and icon.png and put it in README.md
(cherry picked from commit d68abd95fc)
2021-09-20 15:00:03 +02:00
Marcus Brummer 0d88a4fded
Initialize n_warnings_dropped to 0 in ScriptDebuggerRemote
(cherry picked from commit d3866d78f2)
2021-09-16 16:00:48 +02:00
bruvzg 165775e689
[macOS, Mono] Automatically enable JIT entitlements for the Mono exports.
(cherry picked from commit f37981b83f)
2021-09-16 13:29:53 +02:00
Francois Belair 9d0e0fe783
Fix LSP completion crashing on sceneless scripts
(cherry picked from commit 6db17a523e)
2021-08-20 17:12:24 +02:00
clayjohn a384ffa2b0
Fix multimesh being colored by other nodes GLES3
(cherry picked from commit 92bf493821)
2021-08-20 10:04:18 +02:00
Rémi Verschelde 22c9ef8f0f
Bump version to 3.3.4-rc 2021-08-19 18:51:41 +02:00
Rémi Verschelde b973f997ff
Bump version to 3.3.3-stable
Thanks to all contributors! <3
2021-08-19 09:27:30 +02:00
Rémi Verschelde 6a2f135695
Update changelog for 3.3.3-stable 2021-08-19 09:27:19 +02:00
Aaron Franke f799163914
[3.x] Improve the docs for the float type
(cherry picked from commit 02a94ee977)
2021-08-18 23:27:57 +02:00
Haoyu Qiu dff81b25cd
Fix TextEditor not checking Standard highlighter in non-English UI
When using non-English UI, there were `Index p_idx = -1 is out of bounds (items.size() = 2).`
errors on on startup if any text file is open in the script editor. And clicking the Standard
highlighter option does not check that menu item.

This is caused by `TextEditor` searching for that menu item with unlocalized text. As already
did in `ScriptTextEditor`, this PR stores and searches for menu item with `TTR`ed text.

(cherry picked from commit a66339a549)
2021-08-18 23:27:43 +02:00
ne0fhyk a9bffd5878
Fix possible null pointer exception.
(cherry picked from commit e2bcdad43b)
2021-08-18 23:27:30 +02:00
LoipesMas c55be95364
Epsilon check for angular velocity in BodySW
(cherry picked from commit 32965aa0ab)
2021-08-18 23:27:12 +02:00
Hugo Locurcio 62df64fe58
Fix Xbox controllers in Bluetooth mode on macOS
This prevents the D-pad up arrow from being registered as pressed
when it isn't, and pressing any direction from activating the next
arrow clockwise of it.

Co-authored-by: Scott Wadden <scott.wadden@gmail.com>
(cherry picked from commit f95035b80b)
2021-08-18 23:26:28 +02:00
Sushi 8b07d65701
Fix: Selection Only in Find/Replace now preserves selection
(cherry picked from commit a4d5664858)
2021-08-18 23:25:31 +02:00
Fabio Alessandrelli 2e8081cef2
Update Godot Javascript FS library to manually depend on ERRNO_CODES.
Fixes compatibility with Emscripten 2.0.26+.

(cherry picked from commit 71fb2429a0)
2021-08-18 23:24:03 +02:00
kobewi f604b32081
Fix renaming directories
(cherry picked from commit 0dde3e5b59)
2021-08-18 23:23:39 +02:00
Gordon MacPherson 1b51ba0157
Fix github actions cache server being down failing builds
(cherry picked from commit 27da2e364e)
2021-08-18 23:22:55 +02:00
Rémi Verschelde 6bcd7f6b54
SCons: Fix potential error when pruning cache on CI
This could cause spurious errors on CI when trying to prune the cache,
as for some reason it tries to remove files/paths which do not exist.

That points at a bug in the `cache_progress` logic but at least this
workaround should prevent CI failures.

(cherry picked from commit 825b245f0d)
2021-08-18 23:22:52 +02:00
Rémi Verschelde 1aa7f05dd9
Merge pull request #48244 from qarmin/pin.3.3.project 2021-08-18 10:30:36 +02:00
Rémi Verschelde 3b65adb00f
Merge pull request #51744 from ModProg/android-right-click-3.3
[3.3] [android] Fixed wrong button mask for right click
2021-08-17 12:49:28 +02:00
ModProg 2667261520 [android] Fixed wrong button mask for right click 2021-08-16 18:14:12 +02:00
Rémi Verschelde f66ff33b25
Merge pull request #51719 from akien-mga/3.3-scoped-storage 2021-08-16 10:56:14 +02:00
Rémi Verschelde f1bf894085
Android: Increase default armv7 NDK platform to 19
Following #50359 this is the new minSdk that we target.
Users can still override it in custom builds if they want to support SDK 18.
2021-08-16 10:12:43 +02:00
ne0fhyk 2eb8875b77
Add partial support for Android scoped storage.
This is done by providing API access to app specific directories which don't have any limitations and allows us to bump the target sdk version to 30.
In addition, we're also bumping the min sdk version to 19 as version 18 is no longer supported by Google Play Services and only account of 0.3% of Android devices.

(cherry picked from commit c88d1608ab)
2021-08-16 09:56:32 +02:00
Rafał Mikrut 654d892570 Pin Godot 3.3 to same version of test project in CI 2021-08-15 22:46:51 +02:00
Rémi Verschelde 7054f93e10
Update AUTHORS and DONORS list
New contributors added to AUTHORS:
angad-k, Bhu1-V, Blackiris, ellenhp, fabriceci, follower,
foxydevloper, Geometror, hilfazer, hoontee, Janglee123,
Razoric480, SirQuartz, theoway.

Thanks to all contributors and donors for making Godot possible!

(cherry picked from commit d8a8d32f2e)
2021-08-13 12:17:15 +02:00
kobewi 1f87904366
Don't save project on startup in headless or no-window mode
(cherry picked from commit ea2489ce93)
2021-08-13 12:17:15 +02:00
Raul Santos f38abd593d
Fix Path3D initial forward calculation
(cherry picked from commit 102ec1042b)
2021-08-13 12:17:15 +02:00
Raul Santos 32bbe644ca
Fix forward calculation in PathFollow3D for the position at the end of the curve
(cherry picked from commit e23f6a5bba)
2021-08-13 12:17:15 +02:00
JestemStefan 86466737ff
Added minimum scale for node 2D
(cherry picked from commit b7817c7b59)
2021-08-13 12:17:15 +02:00
Fredia Huya-Kouadio 1c8682aa78
Resolve issue where the Godot app remains stuck when resuming.
This was caused by the fact that a new instance of Godot was created at resume while a previous instance already existed.
The previous instance would then go through its cleanup lifecycle, and would thus attempt to close the entire app, leading to the system to restart the app, thus starting the cycle anew.
The fix involves reusing the previous instance of Godot if one is available instead of creating a new one, as well as giving control to the host activity for how the process should be terminated.

(cherry picked from commit 874aa1708f)
2021-08-13 12:17:15 +02:00
Hugo Locurcio afefa8f70f
Fix incorrect descriptions for EditorFileSystem's get_file_type()
(cherry picked from commit 1942e0c117)
2021-08-13 10:41:32 +02:00
Fredia Huya-Kouadio d4eecf4535
Update external texture flag configuration.
(cherry picked from commit 2cc1cdc27b)
2021-08-13 10:41:19 +02:00
Max Hilbrunner 8c20e03150
Docs: Add warnings about no SSL/(D)TLS revocation
(cherry picked from commit 4eb427afb8)
2021-08-13 10:40:55 +02:00
Max Hilbrunner 0c6b5bdfeb
Update bundled Mozilla X.509 CA root certificates
Updated to latest upstream changes (2021-07-05 21:36:52 GMT), taken from 8b263a18fc

(cherry picked from commit d9005912c1)
2021-08-13 10:39:56 +02:00
Yuri Roubinsky a89346e227
Fix incorrect position of the created VisualShader nodes on zoomed graph
(cherry picked from commit 8249ae8085)
2021-08-13 10:39:21 +02:00
clayjohn 279af47ef9
Allow unclamped colors in Sprite3D
(cherry picked from commit f7dbcf95e1)
2021-08-13 10:39:03 +02:00
Hugo Locurcio 5da2675856
Clamp negative colors regardless of the tonemapper to avoid artifacts
Color artifacts could be visible when using negative lights with the
Filmic and ACES tonemapping operators, as these did not clamp negative
colors.

(cherry picked from commit 313527b3fa)
2021-08-13 10:38:06 +02:00
Rémi Verschelde 64af5e5db4
FileAccessWindows: Add missing share.h include
Follow-up to #51430.

(cherry picked from commit cb52f2c9c0)
2021-08-13 10:37:31 +02:00
Max Hilbrunner be6712fb3d
Fix Windows platform file access
This restores Windows platform file handling back to open files non-exlusively by default, as was the case before October 2018. (See b902a2f2a7)
Back then, while fixing warnings for MSVC, the function used for opening files was changed from _wfopen() to _wfopen_s() as suggsted by the warning C4996. ("This function may be unsafe, consider using _wfopen_s instead.")

This new function
1. did parameter validation and thus avoided some possible security issues due to nil pointers or wrongly terminated strings
2. it also changed the default file sharing for opened files from _SH_DENYNO (which was the implicit default for the previous _wfopen()) to _SH_SECURE.

_SH_DENYNO means every opened file could be opened by other calls (like is the default on other operating systems).
_SH_SECURE means if the file is opened with READ access, others can still read the same file, but if it is opened with WRITE access, others can't open it at all, not even to read.

This led to rarely occuring bugs on Windows, i.e. due to random access by Antivirus processes, or Godot/Windows not closing a file handle fast enough while trying to open it again elsewhere (i.e. project.godot, instead showing the Project manager, or saving shaders/debugging the game).

What this PR does it change the file access to a third method, _wfsopen(). This is still secure, doing parameter validation and thus avoids the warning, but it allows us to actually SET the file sharing parameter. And we set it to _SH_DENYNO, as it was implicitely before the change. (And as it currently is on all non-Windows platforms, where file sharing restrictions don't exist by default.)

Warning C4996 should really have been pointing this out. It should've been _wfsopen() all along. Let's hope this banishes those annoying, rare errors for all eternity.

Fixes #28036.

(cherry picked from commit b48cbb5da9)
2021-08-13 10:37:26 +02:00
Omar Polo 6cc9333fe8
automatically detect BSDs as platform=linuxbsd
(cherry picked from commit 78cd0ffdba)
2021-08-13 10:36:58 +02:00
Michael Alexsander f20a2d3da7
Make property description in the animation editor actually show it
(cherry picked from commit bea868f750)
2021-08-13 10:36:58 +02:00
follower 1785d3e030
Fix Unicode URL link tags to render correctly.
Change incorrect `[/code]` closing tags to `[/url]` tags.

The `url` tags for the links to the Unicode code points information use `[/code]` rather than `[/url]` to close them.

This results in the links being rendered incorrectly in the IDE--the entire rest of the documentation for each method gets turned into a giant underlined link.

This issue was introduced in a2271ba3bd.

(cherry picked from commit b85688ac7d)
2021-08-13 10:36:58 +02:00
Sergey Minakov ed5b7e38ce
[iOS] Use platform generated api to initialize iOS plugins
(cherry picked from commit d48d7cc94f)
2021-08-13 10:36:58 +02:00