Commit Graph

32009 Commits

Author SHA1 Message Date
Haoyu Qiu
46037af570
Fix documentation about TreeItem button ID
(cherry picked from commit bb766a8fb6)
2022-02-17 10:44:05 +01:00
Haoyu Qiu
9b161542dc
Fix VisualScript crash when using Set Index node
(cherry picked from commit 1262d331c0)
2022-02-17 10:42:04 +01:00
Hugo Locurcio
83bfc89466
Document Light contact shadows often looking broken
(cherry picked from commit 9171737e2b)
2022-02-17 10:41:53 +01:00
Hugo Locurcio
2c174cbc0a
Clamp environment light sky contribution to the [0.0; 1.0] range
The value is already clamped in the editor, but it wasn't being
clamped when the value was set via code. Values outside the [0.0; 1.0]
range can result in broken rendering.

(cherry picked from commit 08128351a5)
2022-02-17 10:41:37 +01:00
Hugo Locurcio
8af41b1c58
Improve documentation for AudioServer device properties and methods
(cherry picked from commit 743b5608e3)
2022-02-17 10:41:11 +01:00
Max
12b9fe5021
Fixed variant decoding Segmentation Fault
(cherry picked from commit 6aede992a9)
2022-02-17 10:40:42 +01:00
Bartłomiej T. Listwon
ec1dc201f6
Audio quality improvements in PitchShift
(cherry picked from commit 29b6ed9283)
2022-02-17 10:40:15 +01:00
Bartłomiej T. Listwon
3c1fbdba95
Pass audio samples untouched for pitch_scale around 1.0f
(cherry picked from commit c02e979dbf)
2022-02-17 10:40:09 +01:00
Hugo Locurcio
9f020ec777
Clarify identical hash() return values due to collisions
(cherry picked from commit 08541fe11d)
2022-02-17 10:39:39 +01:00
lawnjelly
f911ec589d
Fix GL buffer upload size bugs
Wrapper functions for uploading buffers to OpenGL take all sizes and offsets in bytes. Some buffer sizes are specified as units (e.g. float) so require conversion to bytes when calling the buffer upload functions.

Two such bugs have been fixed in blendshapes, and parameter names and comments have been changed to emphasize that sizes should be in bytes.

In addition DEV_ASSERTS in the upload wrappers have been changed to ERR_FAIL.

(cherry picked from commit 614dc363ab)
2022-02-17 10:39:06 +01:00
Jean-Michel Bernard
285c2d3a84
Hide Polygon2D lines and handles when node is not visible in tree.
(cherry picked from commit b0ebbd8ece)
2022-02-17 10:38:49 +01:00
Jean-Michel Bernard
c761613826
Hide CollisionShape2D handles when node is not visible in tree.
(cherry picked from commit ef995b222e)
2022-02-17 10:38:24 +01:00
Hugo Locurcio
1c4c724064
Tweak logo max width on the web editor
The logo's maximum width is now dependent on the viewport height
in addition to the page width. This prevents the "Start Godot editor"
button from overflowing the page on mobile devices (although the
"Clear persistent data" and "Web editor documentation" buttons will
still overflow for now).

(cherry picked from commit 34a4ff0cef)
2022-02-17 10:37:31 +01:00
Hugo Locurcio
c1ad560e55
Allow using the web editor on any device orientation
On tablets and foldable phones, the editor can remain usable
while in portrait mode thanks to the wide display.

(cherry picked from commit 078475f354)
2022-02-17 10:36:51 +01:00
Hugo Locurcio
90ca5d29e3
Tweak theme color to match the Godot editor's background color
This makes for a more seamless-looking address bar/status bar
when using the web editor on a mobile device, either directly
in the brower or installed as a progressive web app.

This also specifies a theme color for the web editor's offline
fallback.

(cherry picked from commit 7ef459c2d7)
2022-02-17 10:36:48 +01:00
BimDav
e53604b742
has_setting now correctly returns true when the setting is present due to a feature tag
(cherry picked from commit d39e416c61)
2022-02-17 10:35:27 +01:00
Hugo Locurcio
87e96ca24c
Improve the AudioStreamPlayer2D/3D.area_mask documentation
The documentation was stating that the area mask affects where sounds
can be heard, which is not true. Instead, the area mask affects audio
bus redirection.

Thanks to Azedaxen on the Godot forums for providing this description :)

(cherry picked from commit ab1eaac315)
2022-02-17 10:34:57 +01:00
Fabio Alessandrelli
06de19a266
[HTML5] Fetch API now passes credentials.
Used default value before, i.e. "same-origin", now uses "include" (i.e.
include for cross-origin if cross-origin is allowed).

(cherry picked from commit ffe248cbdf)
2022-02-17 10:34:36 +01:00
Haoyu Qiu
4ad179b75d
Fix GridMap memory leak
(cherry picked from commit 5d4a141c97)
2022-02-17 10:34:16 +01:00
Hugo Locurcio
66de60553e
Recommend using GitHub attachments for minimal reproduction projects
Third-party file hosts can have their files expire or be removed
by the owner. In comparison, GitHub attachments are more resilient.

This also fixes the link to create a bug report.

(cherry picked from commit 01c1667836)
2022-02-17 10:33:31 +01:00
Hayden
d47214f344
Make parser treat all exponent literals as float
(cherry picked from commit 1305ff92f7)
2022-02-17 10:33:31 +01:00
Hayden Leete
6e14ab25f6
Added hex and bin literal support to Expression parser
fixed formatting

(cherry picked from commit 018de19eba)
2022-02-17 10:32:21 +01:00
Densorius
fd850ace8a
Fixed opening new instances of VS 2022 while a instance is already open
(cherry picked from commit 93e2d0446f)
2022-02-17 10:32:00 +01:00
Densorius
a357557282
Add Visual Studio 2022 support with fallback to 2019
(cherry picked from commit 9ea0508d35)
2022-02-17 10:31:41 +01:00
TechnicalSoup
04e9de3d71
Expand description for warp_mouse_position method
Add more detail to the description for the warp_mouse_position method, clarifying that the vector is in screen coordinates and relative to an origin at the top of the game window.

(cherry picked from commit 3dc1fad262)
2022-02-17 10:31:12 +01:00
bruvzg
58d1a8f344
[macOS] Add missing translation file.
(cherry picked from commit 1aa6a95081)
2022-02-17 10:30:53 +01:00
bruvzg
f883dd48ca
Add empty translation files to the exported app bundle, to allow translation detection by the OS.
(cherry picked from commit 2eeff4caec)
2022-02-17 10:30:53 +01:00
bruvzg
499cb0bf12
[macOS] Add empty translation files to the editor app bundle, to allow translation detection by the OS.
(cherry picked from commit 3b4de845fe)
2022-02-17 10:30:53 +01:00
Max Hilbrunner
6ce71b78a7
DOCS: Object.set() does nothing on type mismatch
(cherry picked from commit bb7d003881)
2022-02-17 10:26:38 +01:00
Rémi Verschelde
2cc4616d6b
SCons: Add fast_unsafe option for faster rebuilds
This reverts #53828 which had caused a significant drop in incremental
rebuild time for debug builds (from 10s to 23s on my laptop).

The "faster but unsafe" options are re-added, as well as adding
`max_drift=60` which we didn't use previously.

These options speed up SCons' own processing of the codebase to decide
what to build/rebuild (i.e. the first step before actually calling the
compiler). This will therefore not make much difference for scratch
builds, and is mostly useful for incremental rebuilds (including "null"
rebuilds with no change).

These options are enabled automatically for `debug` builds, unless
`fast_unsafe=no` is passed.
They are disabled by default for `release` and `release_debug` builds,
unless `fast_unsafe=yes` is passed.

(cherry picked from commit d4553c5126)
2022-02-17 10:26:17 +01:00
Nathan Franke
4ef3985dc3
use exact match when checking focus next / previous
(cherry picked from commit c27b05febb)
2022-02-17 10:25:46 +01:00
lawnjelly
4f86249d1e
Fix for S3TC on Android and IOS devices
On some platforms, exporters are prevented from exporting S3TC textures. This causes problems if the .import file contains a reference to such a texture - the exported project will attempt to load the S3TC, fail, and probably crash.

This PR prevents this problem by faking lack of hardware support for S3TC on the affected platforms. This prevents the engine attempting to load the S3TC and avoids the problem.

(cherry picked from commit b15ad8e786)
2022-02-17 10:25:30 +01:00
Sergey Minakov
21b6d31e4c
[iOS] Fix touch handling for overlay views
Workaround for GodotView touches being called from UIWindow on different UIView input

(cherry picked from commit aba5f6d9be)
2022-02-17 10:25:07 +01:00
Haoyu Qiu
8093d25827
Fix RayCast{,2D}.clear_exceptions clears parent
(cherry picked from commit 74a4795fb1)
2022-02-17 10:24:46 +01:00
Jason Knight
07cc27692d
Use ScriptServer::get_global_class_base instead of script_class_get_base in script_class_is_parent.
(cherry picked from commit 6f7cef601a)
2022-02-17 10:23:59 +01:00
Hugo Locurcio
9766486aaf
Document performance limitations with CSG nodes, link to tutorial
(cherry picked from commit 1b505ef8ca)
2022-02-17 10:23:44 +01:00
kleonc
a5b85c331e
SpriteFramesEditor Fix crash when selecting non-Texture file for splitting
(cherry picked from commit 87b4db9e63)
2022-02-17 10:23:29 +01:00
Raul Santos
e9f93155c6
Attach mono thread before getting nativeName field
In order to access the `nativeName` constant field from a C# class, the
mono scope thread must be attached or the mono domain will be null.

(cherry picked from commit eddb99b9be)
2022-02-17 10:23:15 +01:00
Omar El Sheikh
ca67b2bce1
Re-fix Disabling Half Floats on iOS
A previous change missed setting a flag that specified whether half
floats were being used on vertex positions when in the GLES2 driver

This caused errors with the vertex buffer when platforms (specifically
iOS) which do not properly support half float vertex attributes on
GLES2, try to remapt the vertex buffer to stop using half floats
(in this case that remapping never happened and caused artifacts)

Re-enable setting that flag to fix rendering issues on these platforms

(cherry picked from commit bf5b2f48e6)
2022-02-17 10:23:02 +01:00
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