Commit Graph

34895 Commits

Author SHA1 Message Date
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
Rémi Verschelde 0e594bb815
Merge pull request #48037 from ray90514/bug#47720
Fix Script editor completion doesn't suggest members of a script for type hints
2022-12-12 13:40:28 +01:00
Rémi Verschelde bfce0c1e52
Merge pull request #59765 from pfertyk/issue-59359-wrong-visible-line-count-if-newline
Fix wrong visible line count for newline
2022-12-12 13:40:14 +01:00
ray90514 7afbd5904e
Fix Script editor completion doesn't suggest members of a script for type hints 2022-12-12 13:36:32 +01:00
Rémi Verschelde 004c174086
Merge pull request #69929 from aaronfranke/3.x-gltf-subclasses
[3.x] Backport moving camera and light logic to GLTF subclasses, fix ortho cameras
2022-12-12 12:28:07 +01:00
Rémi Verschelde 16ad014dd3
Merge pull request #67040 from Calinou/xdg-paths-linux-only-3.x
Only support XDG directory path configuration on Linux (3.x)
2022-12-12 12:27:56 +01:00
Rémi Verschelde 0efa2cec08
Merge pull request #67767 from Calinou/doc-debanding-3d-only-3.x
Document debanding only affecting 3D rendering by default (3.x)
2022-12-12 12:27:50 +01:00
Hugo Locurcio 06c266f231
Only support XDG directory path configuration on Linux
This also harmonizes the server code to be consistent with Linux desktop
(with warnings printed for relative XDG paths).

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2022-12-12 11:13:19 +01:00