Commit graph

34699 commits

Author SHA1 Message Date
Hugo Locurcio
be3017114f Silence Input.vibrate_handheld() warning as it's already documented
The warning causes messages to be spammed if you are calling this
method in a game that runs on both desktop and mobile platforms,
unless you guard all calls to `Input.vibrate_handheld()` with
`OS.has_feature("mobile") or OS.has_feature("web")`.

Since the limitation is already documented (and is obvious enough
given the method's name), the warning message is redundant.

(cherry picked from commit 4a991887bf)
2022-12-18 10:32:04 +08:00
Haoyu Qiu
b2e5c8fe10 Fix possible Tween leak on exit
(cherry picked from commit e173710963)
2022-12-18 10:32:04 +08:00
Rindbee
9056cc9c2a Fix property link not working in MultiNodeEdit
This is due to the `p_field` in the `EditorProperty::emit_changed`.
`p_field` only works for `MultiNodeEdit`, not for other objects.

(cherry picked from commit b6fdd0815c)
2022-12-18 10:32:04 +08:00
FireForge
0d602ce881 Add Vector2/3 linking to more properties
- Camera2D.zoom
- CanvasLayer.scale
- ParallaxBackground.scroll_base_scale
- ParallaxLayer.motion_scale
- Polygon2D.texture_scale
- SpatialMaterial.uv1_scale
- SpatialMaterial.uv2_scale

(cherry picked from commit 92817aa72f)
2022-12-18 10:32:04 +08:00
kobewi
9499ebecee Add vector value linking
Co-authored-by: redlamp <244062+redlamp@users.noreply.github.com>
(cherry picked from commit 5553e27fe8)
2022-12-18 10:32:04 +08:00
Rémi Verschelde
3428bcd854
Merge pull request #70156 from m4gr3d/update_editor_theme_3x
[3.x] Add boot splash for the Godot Editor
2022-12-17 14:28:18 +01:00
Rémi Verschelde
607940875c
Merge pull request #70111 from Maran23/3.x-check-null-event-in-tree
[3.x] Check for null event in Tree._gui_input to avoid engine crash
2022-12-17 14:28:11 +01:00
Rémi Verschelde
84566b3296
Merge pull request #70089 from Rubonnek/3x-avoid-compiling-editor-checks-in-visibilitynotfier2d
[3.x] Avoid compiling Editor checks in release builds for `VisibilityNotifier2D`
2022-12-17 14:27:21 +01:00
Rémi Verschelde
1f9f6f60b3
Merge pull request #67934 from alfredbaudisch/vs-operator-aliases-3.x
[3.x] Add math operators to Visual Shader node names
2022-12-17 14:27:11 +01:00
Fredia Huya-Kouadio
4110d48b63 Add boot splash for the Godot Editor 2022-12-16 09:54:50 -08:00
Marius Hanl
09f974b21d Check for null event in Tree._gui_input to avoid engine crash 2022-12-15 17:35:53 +01:00
Alfred Reinold Baudisch
7779164096 Add math operators to Visual Shader node names
This change makes it easy, in the "Create Shader Node" dialog, to search for VS nodes by just typing the operator. For example, instead of typing "multiply", you can just type "*" and multiply nodes will be listed.

This feature is inspired by Unreal Engine node graph editor's UX.

Backported from https://github.com/godotengine/godot/pull/67905
2022-12-15 17:21:37 +01:00
Wilson E. Alvarez
78b8cf7edb
Avoid compiling Editor checks in release builds for VisibilityNotifier2D 2022-12-15 11:13:10 -05:00
Rémi Verschelde
4d8b9be48d
embree: Sync build flags with master
Fixes Android ARM build.
These flags were added in master with 3f6ed10a5d.
2022-12-15 13:53:02 +01:00
Rémi Verschelde
6963ba631e
Fix typos with codespell 2022-12-15 12:26:59 +01:00
Dennis Ranke
55441f2301
handle ambiguous input events as touch events
there can be events can have both SOURCE_TOUCHSCREEN and SOURCE_STYLUS. handle them as touch events rather than mouse events.

(cherry picked from commit 408000752c)
2022-12-15 12:18:41 +01:00
Rémi Verschelde
583aea8cd2
Update AUTHORS and DONORS list
New contributors added to AUTHORS:
adamscott, alfredbaudisch, DarkKilauea, DeeJayLSP, dzil123,
jasonwinterpixel, jtnicholl, nikitalita, Riteo, rune-scape, TechnoPorg

Thanks to all contributors and donors for making Godot possible!

(cherry picked from commit 85ca32bce6)
2022-12-15 12:17:45 +01:00
Rémi Verschelde
d79699041a
Merge pull request #70038 from m4gr3d/update_navigation_controls_toggle_3x
[3.x] Update the visibility logic for the spatial editor navigation controls
2022-12-14 11:35:41 +01:00
Rémi Verschelde
bd7141db3f
Merge pull request #54115 from Rubonnek/fix-40310
[3.x] Do not fire VisibilityNotifier `screen_entered` and `screen_exited` signals in the Editor
2022-12-14 11:35:30 +01:00
Fredia Huya-Kouadio
0825859a94 Update the visibility logic for the spatial editor navigation controls 2022-12-13 16:17:22 -08:00
Wilson E. Alvarez
6a8bae4e35
Do not fire VisibilityNotifier screen_entered and screen_exited signals in the Editor 2022-12-13 10:29:28 -05:00
Rémi Verschelde
0b7eb2f744
i18n: Sync classref translations with Weblate (3.5 branch)
(cherry picked from commit f5f0543aec)
2022-12-13 14:37:39 +01:00
Rémi Verschelde
e25d6a0ec2
i18n: Sync editor translations with Weblate (3.5 branch)
(cherry picked from commit ee8986e146)
2022-12-13 14:37:34 +01:00
Haoyu Qiu
6f69d29398
Fix crash after executing ItemList.set_icon_scale
(cherry picked from commit 8d0fa193c3)
2022-12-13 14:24:25 +01:00
Rémi Verschelde
5797b2f437
Merge pull request #69826 from norrath-hero/3.x
Fix GLES 2 Spotlight bug
2022-12-13 14:16:51 +01:00
Rémi Verschelde
59ab3626d3
Merge pull request #69960 from akien-mga/3.x-lsp-fix-root-uri
LSP: Improve handling of file URI scheme
2022-12-13 14:15:15 +01:00
Rémi Verschelde
a916529023
Merge pull request #69976 from DeeJayLSP/update_stb
Update stb libraries
2022-12-13 14:15:02 +01:00
DeeJayLSP
55deecb9a3 Update stb libraries 2022-12-12 15:06:22 -03:00
Rémi Verschelde
5d5f0a3958
Merge pull request #69963 from lawnjelly/variant_parser_optional_readahead_3
VariantParser make readahead optional [3.x]
2022-12-12 19:02:17 +01:00
lawnjelly
776c9d0579 VariantParser make readahead optional
It turns out some areas are independently moving / reading filepointers outside of the VariantParser, which can cause the readahead caching to get out of sync.

This PR makes the VariantParser readahead to be optional to allow for these use cases.
2022-12-12 15:44:39 +00:00
Rémi Verschelde
2343ba148b
Merge pull request #69959 from Calinou/distance-fade-use-circular-fade-3.x
Use circular fade instead of linear fade for distance fade (3.x)
2022-12-12 16:07:31 +01:00
Rémi Verschelde
2c714f19e5
Merge pull request #65453 from timothyqiu/agent-target-3.x
[3.x] Make NavigationAgent `target_location` a property
2022-12-12 16:07:25 +01:00
Lamia
a412922c2b
LSP: Improve handling of file URI scheme
Fixes #63205.

(cherry picked from commits 3fa943fe23,
42a16ef76e and
2ff69d6181)
2022-12-12 15:58:20 +01:00
Rémi Verschelde
3a2f2d99f6
Merge pull request #69957 from akien-mga/3.x-cherrypicks
Cherry-picks for the 3.x branch (future 3.6) - 10th batch
2022-12-12 15:53:39 +01:00
Hugo Locurcio
56ac14fbf0
Use circular fade instead of linear fade for distance fade
This makes distance fade look the same regardless of the camera angle,
for all distance fade modes (Pixel Alpha, Pixel Dither, Object Dither).
Distance fade now behaves like fog in this regard.
2022-12-12 15:16:34 +01:00
DeeJayLSP
f694ab1c64
Update embree to 3.13.5
(cherry picked from commit 5e4158eb48)
2022-12-12 14:49:24 +01:00
Rémi Verschelde
39b1c06a59
SCons: Fix MSVC D9025 warning overriding opt level
And cleanup disable_warnings too to avoid setting `/w` / `-w` multiple times.

(cherry picked from commit 9505f5fdd8)
2022-12-12 14:49:24 +01:00
jfons
99aa9a99f9
Force optimized builds for thirdparty Embree files
(cherry picked from commit b197fc2079)
2022-12-12 14:49:24 +01:00
Joan Fons
759ce9b689
Upgrade Embree and enable ray packets
Minor patch upgrade. Enabling ray packets results in faster
processing of ray streams (i.e. occlusion culling buffer
updates) at the cost of slightly larger binary sizes.

(cherry picked from commits 595cbacdf1
and eb0f67a541)
2022-12-12 14:49:24 +01:00
Hugo Locurcio
c54c1b0b6b
Fix infinite loop when calling Control.popup_centered_minsize()
Co-authored-by: sriramun <sriramun2@gmail.com>
(cherry picked from commit 08e804b3b7)
2022-12-12 14:49:23 +01:00
Rémi Verschelde
84d2f884f8
Sync controller mappings DB with SDL2 community repo
Synced with gabomdq/SDL_GameControllerDB@adf7ec1edf

(cherry picked from commit 5f35b1d516)
2022-12-12 14:49:23 +01:00
Dawid Marzec
ecef4804f2
Fix errors while deselecting all tree items; issue #65185
(cherry picked from commit d4d5df2314)
2022-12-12 14:49:23 +01:00
kobewi
b5bf60e04f
Fix crash in EditorPropertyArray
(cherry picked from commit d80a2a89f0)
2022-12-12 14:49:23 +01:00
Fredia Huya-Kouadio
de45636fd3
Upgrade Android gradle plugin to version 7.2.1
(cherry picked from commit 151233b702)
2022-12-12 14:49:23 +01:00
Fabio Alessandrelli
eda014197f
[Web] Add the "serve" and "run" scons targets.
You can now run the test HTTP server by calling:

scons p=javascript serve

If you also wish to run the browser, call instead:

scons p=javascript run

The default listen port is 8060, but can be overriden via the env
variable GODOT_WEB_TEST_PORT which must be a valid integer.

(cherry picked from commit a06602363c)
2022-12-12 14:49:22 +01:00
Hugo Locurcio
816db5c215
Replace local web server setup for web editor with a Python-based solution
This makes it easier to set up, as you always have Python installed
when building Godot. On the other hand, you don't always have Node.js
+ npm installed (and you may not want to spend time running `npm install`).

Co-authored-by: Fabio Alessandrelli <fabio.alessandrelli@gmail.com>
(cherry picked from commit 1be1b15a57)
2022-12-12 14:49:22 +01:00
Rémi Verschelde
b0b759e6da
SCons: Cleanup DEBUG, _DEBUG and NDEBUG defines
- `_DEBUG` is MSVC specific so it didn't make much sense to define for
  Android and iOS builds.
- iOS was the only platform to define `DEBUG`. We don't use it anywhere
  outside thirdparty code, which we usually don't intend to debug, so it
  seems better to be consistent with other platforms.
- Consistently define `NDEBUG` to disable assert behavior in both `release`
  and `release_debug` targets. This used to be set for `release` for all
  platforms, and `release_debug` for Android and iOS only.
- Due to the above, I removed the only use we made of `assert()` in Godot
  code, which was only implemented for Unix anyway, should have been
  `DEV_ENABLED`, and is in PoolAllocator which we don't actually use.
- The denoise and recast modules keep defining `NDEBUG` even for the `debug`
  target as we don't want OIDN and Embree asserting all over the place.

(cherry picked from commit 26e9145c26)
2022-12-12 14:49:21 +01:00
DeeJayLSP
bd248650d1
Update miniupnpc to 2.2.4
(cherry picked from commit f592f6ba0c)
2022-12-12 14:15:06 +01:00
Rémi Verschelde
912cd43418
miniupnpc: Update to version 2.2.3
Library code and public headers are now properly separated, we can fix include paths
to remove the redundant subfolder.

(cherry picked from commit 432ac521ef)
2022-12-12 14:15:06 +01:00
Fabio Alessandrelli
41b880582e
[Web] Add PS3 gamepad mapping for FF+Linux.
(cherry picked from commit 0fe0505f77)
2022-12-12 14:15:06 +01:00