Commit Graph

29936 Commits

Author SHA1 Message Date
Fabio Alessandrelli 23ef985bb8
[HTML5] Use 64KiB chunk size in JS HTTPClient.
For consistency with the native one, and the documentation.

(cherry picked from commit 6243835619)
2021-05-09 17:14:35 +02:00
Hugo Locurcio 9b01143380
Improve the AudioStreamPlayer(2D/3D) class descriptions
(cherry picked from commit b90adec417)
2021-05-09 17:14:35 +02:00
Rémi Verschelde c03c6ae299
Merge pull request #48586 from akien-mga/tileset-better-errors
[3.x] TileSet: Improve error message for invalid IDs
2021-05-09 17:13:10 +02:00
Rémi Verschelde ee86dc3011
TileSet: Improve error message for invalid IDs
Supersedes #47321.
Fixes #47313.
2021-05-09 16:56:52 +02:00
Rémi Verschelde c8c8bcee50
Merge pull request #48540 from Calinou/editor-theme-allow-negative-contrast-3.x
Allow negative contrast values in the editor theme settings (3.x)
2021-05-09 16:38:02 +02:00
QbieShay 3af20b9bdf Added ring emitter for 3D particles
This commits adds a new emitter type for particles material
and 3D CPU particles. The new emitter is called "ring"
and it can emit either in a ring or cylinder fashion.
This adds the following properties for the emitter:
1. ring_emitter_axis: the axis along which the ring/cylinder
    will be constructed
2. ring_emitter_radius: outer radius of the ring/cylinder
3. ring_emitter_inner_radius: inner radius of the cylinder.
    when set to zero, particles will emit in the full volume.
4. ring_emitter_height: height of the ring/cylinder emitter.

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2021-05-09 13:18:05 +02:00
Rémi Verschelde 4730856264
Merge pull request #44558 from RandomShaper/reset_track_3.2
[3.x] Add animation reset track feature
2021-05-09 10:06:00 +02:00
Pedro J. Estébanez 4da9a501f6 Add animation reset track feature
As a bonus, to have consistency between use Beziers and create insert tracks, use Beziers also gets a default via editor settings that is used when the confirmation dialog is disabled, instead of just falling back to creating non-Bezier tracks.
2021-05-09 09:40:16 +02:00
Pedro J. Estébanez 90f13520dd Extend UndoRedo handling of Resource to every Reference 2021-05-09 09:29:45 +02:00
Rémi Verschelde 1e6dccd1c7
Merge pull request #47814 from rafallus/fix/surfacetool_crash
Check input mesh is valid in SurfaceTool methods
2021-05-09 00:49:01 +02:00
rafallus 0ad0f71ba0
Check input mesh is valid in SurfaceTool methods 2021-05-09 00:38:17 +02:00
Rémi Verschelde 0bdadd468f
Merge pull request #42771 from madmiraal/fix-26680-3.2
[3.x] Move collision layer and mask into CollisionObject.
2021-05-08 17:50:56 +02:00
Marcel Admiraal 8766769fd4 Move collision layer and mask into CollisionObject. 2021-05-08 11:40:57 +01:00
Rémi Verschelde 84061ab03d
Merge pull request #48251 from TwistedTwigleg/skeletonik_changes_and_bug_fixes_regressionfix3_Godot3
[3.x] Fixed issue in SkeletonIK leading to some root bones being twisted incorrectly
2021-05-08 10:40:38 +02:00
Rémi Verschelde 1f202ff099
Merge pull request #48541 from parulina/gles2-viewporttexture-fix
Fixed usage of proxy textures on GLES2 sky
2021-05-07 21:56:37 +02:00
Rémi Verschelde 1690eb7266
Merge pull request #48537 from akien-mga/3.x-android-drop-native-video-api
[3.x] Android: Remove non-functional native video OS methods
2021-05-07 21:26:01 +02:00
paru eed4655644 Fixed usage of proxy textures on GLES2 sky 2021-05-07 18:33:35 +02:00
Hugo Locurcio e7e2ef0767
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.
2021-05-07 18:14:52 +02:00
Rémi Verschelde e96f0ea1d7
Android: Remove non-functional native video OS methods
Those methods are only properly implemented for iOS.

Supersedes #43811.
2021-05-07 16:42:17 +02:00
Rémi Verschelde a0a22ef49f
Merge pull request #48480 from parulina/gles2-blendshapes
Added CPU blendshapes for GLES2
2021-05-07 16:30:43 +02:00
TwistedTwigleg c1bc87ed0d Fixes the SkeletonIK twisting issue by using the skeleton global pose without overrides 2021-05-06 20:11:21 -04:00
Rémi Verschelde 64403ddcab
Merge pull request #42543 from clayjohn/vertex-lighting-bug
Force vertex shading in SpatialMaterial when used
2021-05-07 00:48:32 +02:00
Rémi Verschelde dc612a7651
Merge pull request #46764 from bruvzg/input_fix_non_latin_and_add_hw_scancodes_3 2021-05-06 23:54:53 +02:00
Fabio Alessandrelli 8740e95f15
[HTML5] Add support for `physical_keycode`.
This uses the `event.code` value to retrieve the physical code, while
still using the extra logic to map the unicode value to our keylist,
when computing the `scancode` (supporting ASCII and Latin-1).
2021-05-06 23:19:46 +03:00
bruvzg dab4cf3ed6
Add `physical_scancode` (keyboard layout independent keycodes) to InputEventKey and InputMap.
Fix non-latin keyboard layout keycodes on Linux/X11 (fallback to physical keycodes).
2021-05-06 23:19:45 +03:00
Rémi Verschelde 63391f645c
Merge pull request #48499 from clayjohn/Sprite3D-p_rid-error
Only set base in Sprite3D when needed
2021-05-06 21:50:25 +02:00
Rémi Verschelde 6a103a21a2
Merge pull request #48510 from Calinou/shader-editor-tweak-builtins-color-3.x
Tweak the built-ins color highlighting in the shader editor (3.x)
2021-05-06 21:49:59 +02:00
paru 8b0d3657e5 Added CPU blendshapes for GLES2 2021-05-06 20:52:34 +02:00
Rémi Verschelde 4185a22ca8
Merge pull request #48131 from LightningAA/fix-48113-3.x
[3.x] Fix Array.max() navigating to @GDScript.max()
2021-05-06 20:42:23 +02:00
Hugo Locurcio 42a4bd1ca2
Tweak the built-ins color highlighting in the shader editor
This makes built-ins easier to distinguish from keywords at a
quick glance.
2021-05-06 17:51:36 +02:00
Rémi Verschelde f34a8c7f0e
Merge pull request #47527 from Calinou/editor-translations-allow-multiple-selection-3.x
Allow selecting multiple files in the editor translation/remap dialogs (3.x)
2021-05-06 08:49:24 +02:00
Rémi Verschelde 7833751eae
Merge pull request #48494 from aaronfranke/3.x-scd-size
Update size when updating ScriptCreateDialog
2021-05-06 08:43:37 +02:00
clayjohn 3dd2e5d870 Only set base in Sprite3D when needed 2021-05-05 22:35:21 -07:00
clayjohn 0445531ced Force vertex shading in SpatialMaterial when used 2021-05-05 19:49:18 -07:00
Hugo Locurcio 35887a2afe
Allow selecting multiple files in the editor translation/remap dialogs
This makes it faster to add several translations.

The undo/redo messages were also tweaked to give better context.
2021-05-06 03:02:15 +02:00
Aaron Franke e82f56e3a9
Update size when updating ScriptCreateDialog 2021-05-05 18:10:17 -04:00
Rémi Verschelde 48d7eff3e3
Merge pull request #48485 from JFonS/3.x_embree_aarch64
Add checks for __SSE2__ in the lightmap raycaster
2021-05-05 18:35:04 +02:00
JFonS 20717990fd Add checks for __SSE2__ in the lightmap raycaster 2021-05-05 18:24:13 +02:00
Rémi Verschelde 78b497bf20
Merge pull request #48483 from akien-mga/3.x-embree-not-on-x86
SCons: Disable embree-based modules on x86 (32-bit)
2021-05-05 18:18:08 +02:00
Rémi Verschelde e53422c8f9
SCons: Disable embree-based modules on x86 (32-bit)
Fixes #48482.
2021-05-05 18:01:45 +02:00
Rémi Verschelde 1209ee0df4
Merge pull request #48473 from akien-mga/3.x-fix-custom-resource-loader-loop
Fix crash with user-defined `ResourceFormatLoader.load`
2021-05-05 16:51:16 +02:00
Rémi Verschelde bf9f288c7d
Fix crash with user-defined `ResourceFormatLoader.load`
There's still some fishy recursive relationship between `load_interactive` and
`load` which needs to be investigated here, but this patch solves the crash
when returning an error code in user-defined `load`.

Fixes #48463.
2021-05-05 15:44:42 +02:00
Hugo Locurcio c0ccde9752
Document that `File.open_compressed()` can only open files saved by Godot
(cherry picked from commit 5f098d6db6)
2021-05-05 15:28:12 +02:00
CaptainProton42 76f3f6949e
Fix 3D scene preview generation.
File system dock previews will now be generated for 3D scenes when no
editor feature profile is set.

(cherry picked from commit 16304aaa3b)
2021-05-05 15:28:12 +02:00
Rémi Verschelde 619482472e
Merge pull request #48355 from MaxStgs/3.x
Add PackedDataContainer data pointer check for non nullable
2021-05-05 15:22:40 +02:00
Rémi Verschelde 2a1fb62e96
Merge pull request #48316 from nekomatata/expose-physics-debug-shape-3.x
[3.x] Expose get_debug_mesh in Shape to scripting API
2021-05-05 15:17:48 +02:00
Rémi Verschelde 410b8e8ea7
Merge pull request #48475 from akien-mga/3.x-style-changes 2021-05-05 15:12:55 +02:00
Rémi Verschelde 140350d767
Style: Enforce braces around if blocks and loops
Using clang-tidy's `readability-braces-around-statements`.
https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
2021-05-05 15:02:01 +02:00
Rémi Verschelde b8d198eeed
Merge pull request #48455 from JFonS/3.x_embree_aarch64
[3.x] Switch to embree-aarch64
2021-05-05 15:01:18 +02:00
Rémi Verschelde 16bc2a3d24
Merge pull request #48011 from BastiaanOlij/left_right_eye_indicator
Add VIEW_INDEX variable in shader so we know which eye/view we're rendering for
2021-05-05 09:14:10 +02:00