Commit Graph

1448 Commits

Author SHA1 Message Date
Marcel Admiraal
89737a1ad5 Ensure changes to Camera2D's limits don't affect smoothed_camera_pos 2022-07-30 00:29:44 +02:00
Marcel Admiraal
0d55a30eb1 When Camera2D enters tree, ensure first update is not lost 2022-07-30 00:29:28 +02:00
641c15f906 Ported: [3.x] HTML5: Add support for Input.vibrate_handheld() - pattlebass
fb7ecc748f
2022-07-30 00:29:14 +02:00
Andy Maloney
9481486f92 Add missing Python type hints in tools/make_rst.py
(cherry picked from commit 4b3d6f04a8036a330d499670198463655a097736)
2022-07-29 23:49:33 +02:00
Pedro J. Estébanez
285c2acefc Keep crash handler status on editor restart
(cherry picked from commit 116f03a1b68ecc59f9755cd0219e256c63955f55)
2022-07-29 23:49:10 +02:00
a917d1bed4 Ported: Address remaining scoped storage regressions
- Accelerate common path used to check the storage scope for a given path
- Update the logic for the `get_as_text()` method - previous logic loads the content of a text file one byte at a time
- m4gr3d
fc2c202312
2022-07-29 23:48:31 +02:00
Kevin Smith
3f1e2ac44d Use bigobj for release MSVC builds
Previously it was used only on debug builds, but recent
additions to variant_call.cpp have made that unit too
large even in release_debug.

It was originally set to debug only because using it
breaks mingw, so this only reinstates it for MSVC where
it shouldn't have any drawbacks (famous last words).

Test-Information:
Builds for me with
scons -j 40 platform=windows target=release_debug
and my game then runs from it.

(cherry picked from commit d8900e0020b21d449069ef2a301253371fb70a21)
2022-07-29 23:21:04 +02:00
Hugo Locurcio
ed1a3f632f Require ScriptInstance to be valid in the editor debugger
This fixes an issue with visual scripts spamming error messages
in the editor when running the project with the remote scene tree
visible.

(cherry picked from commit 829c8247559a21d0b6f540e4a548d935c3a24643)
2022-07-29 23:20:46 +02:00
Alfred R. Baudisch
3354642b33 Script Editor: Don't switch to 2D/3D viewports when selecting nodes
Selecting nodes in the Scene dock automatically switches to the relevant 2D
or 3D viewport. This behavior can be annoying while using the Script Editor
and wanting to inspect node properties, so it's now disabled by default when
the Script Editor is active.

This new behavior can be changed back to the previous auto-switching using
the `text_editor/navigation/stay_in_script_editor_on_node_selected` editor
setting.

(cherry picked from commit c4433c37932aca14b45e76a0b3498561532a0055)
2022-07-29 23:20:27 +02:00
Ricardo Buring
899a41e0d7 Fixup BVH debugging statements 2022-07-29 23:20:04 +02:00
679f5a7d64 Ported: SCons: Refactor Linux linker options with linker=<bfd|gold|lld|mold>
The new option is `linker` and lets the user specify the argument to
the`-fuse_ld=` linker flag directly. The supported options are:
- `default`: No change, typically uses GNU ld (bfd) unless the user or
  distro picked a different default `/usr/bin/ld`.
- `bfd`: GNU ld from binutils
- `gold`: GNU gold from binutils
- `lld`: lld from LLVM
- `mold`: mold, an extremely fast modern linker, not (yet) intended for
  use in production but great for development speed. Provided by distro
  `mold` package or needs to be compiled from source and installed to
  `/usr` otherwise.
Deprecates the `use_lld=yes` option, and make lld actually usable with
GCC too.
Not all the above are compatible or recommend for LTO, we recommend
using GNU ld with GCC LTO, or lld with LLVM ThinLTO.
- akien-mga
5bb3063eec
2022-07-29 23:18:06 +02:00
bd391e6fc7 Did the same change to cscript aswell. 2022-07-29 23:07:19 +02:00
Dallon Feldner
90707b7098 Don't print redundant errors when parsing GDScript 2022-07-29 23:04:16 +02:00
41ef59bcc8 Ported: Expose VisualServer.viewport_set_use_32_bpc_depth() to the scripting API.
Previously, only the Viewport methods/properties were exposed to the
scripting API. - Calinou
ed4976d1d5
2022-07-29 23:03:48 +02:00
9596474a36 Ported: [Command line export] return 0 exit code when export is finished with warnings. - bruvzg
d6698c1f81
2022-07-29 23:01:04 +02:00
81f5f0d0de Add missing include. 2022-07-29 23:00:39 +02:00
45a1c98332 Ported: SpriteFramesEditor Add animation searchbox - kleonc
728a725b7b
2022-07-29 22:45:57 +02:00
Rémi Verschelde
fa9d1120c4 doc: Fixup reference to Camera 2022-07-29 22:39:58 +02:00
Nathan Franke
9dae8cd2a5 support git packed refs in version generator
(cherry picked from commit 77cf65804c732431574a99063f2132567d54a6be)
2022-07-29 22:39:36 +02:00
Rémi Verschelde
4a453e6121 SCons: Prevent using vsproj option outside Windows
Fixes #63305.

(cherry picked from commit 4e56f96396cceb9f32674b6ca57a2777c8b5521c)
2022-07-29 22:39:07 +02:00
Zak Grumbles
11ab10b7f2 Improve documentation for Camera3D's current member
* Added additional information to the camera documentation to explain
  how the 'current' attribute behaves when multiple cameras are in a
  scene.

(cherry picked from commit 349c750b18acf770ef6f0e43643c8a37a3beb450)
2022-07-29 22:38:52 +02:00
Derwent Ready (drentsoft)
1288e9c520 Clarified usage of TreeItem get_next*() and get_prev*() functions.
(cherry picked from commit df5a9228808497f19b5bddf7b58d2a532cd990d0)
2022-07-29 22:38:35 +02:00
Nathan Franke
56779597de dependency editor: set current directory to closest existing directory
(cherry picked from commit 905c43119133ab244d81c06e3e2d14d32dea1e91)
2022-07-29 22:38:17 +02:00
lawnjelly
8726cccd56 Portals - Allow more logging to be disabled
Some logging messages were still being issued when portals/debug/logging was false. This could be annoying in games that stream in parts of levels and repeatedly call `rooms_convert()`.

This PR allows all but essential logging to be disabled.
2022-07-29 22:37:46 +02:00
lawnjelly
50d5be10f8 Portals - Fix invalid room hint when reconverting room graph
In situations where rooms are converted multiple times, the previous room hint ID can reference a room number that is out of range of the new number of rooms. This fixes the bug by checking the room hint ID is within range.
2022-07-29 22:37:29 +02:00
Hansem Ro
cedf68bf7f Do case-insensitive search for pen inversion detection 2022-07-29 22:36:49 +02:00
kobewi
7b02b1df64 Fix node dragging not working when dock is moved
(cherry picked from commit b42bbca2666bb0b52156b8b396af54a1429c7077)
2022-07-29 22:35:27 +02:00
Fredia Huya-Kouadio
361b5b23f7 Address slow copy performance when using the FileAccessFilesystemJAndroid implementation.
Read/write ops for this implementation are done through the java layer via jni, and so for good performance, it's key to avoid numerous repeated small read/write ops due the jni overhead.

The alternative is to allocate a (conversatively-sized) large buffer to reduce the number of read/write ops over the jni boundary.
2022-07-29 22:35:08 +02:00
bruvzg
561314ee93 Add ios and macos platform name aliases. 2022-07-29 22:34:45 +02:00
Haoyu Qiu
ba8978a0ac Fix doc for print_debug 2022-07-29 22:34:21 +02:00
7161d7bc29 Ported: Add NetworkedMultiplayerCustom so high-level multiplayer backends can be added from GDScript. - dsnopek
8ad5889c1a
2022-07-29 22:19:12 +02:00
31136b3669 Ported: Document support limitations for OmniLight cubemap shadows in GLES2 - Calinou
b03ceaba2f
2022-07-29 22:11:41 +02:00
c569ecfad1 Ported: TileMapEditor Fix interrupted erasing not being properly finished - kleonc
66551a94be
2022-07-29 22:06:26 +02:00
kleonc
0d8a6b6cdd Fix CanvasItem not exiting its canvas group on canvas exit 2022-07-29 22:01:35 +02:00
fabriceci
dfd8e09953 Fix the calculation of the angular velocity when the rotation speed is not high.
(cherry picked from commit db7c91e0ada0c91ba48269cf3cc217631ca33bba)
2022-07-29 22:00:03 +02:00
Pedro J. Estébanez
a58186c82a Use the right memory ordering in SafeNumeric operations
(cherry picked from commit 02a584d8e68fad988fbbe43e05f8437284c00733)
2022-07-29 21:58:53 +02:00
bruvzg
f8be7dd320 Improve OS.set_current_screen
Fix moving fullscreen windows on macOS and Windows
Fix window position on Linux/X11
2022-07-29 21:58:20 +02:00
Rémi Verschelde
55c580bad5 Sync controller mappings DB with SDL2 community repo
Synced with gabomdq/SDL_GameControllerDB@880abd09c9

(cherry picked from commit b70e4fc0f3a265d2b48fa77107ed864ec8be3f26)
2022-07-29 21:57:31 +02:00
60fd3e14db Ported: Bump mbedtls to version 2.18.1, update LICENSE.
Keep applying windows entropy patch.
Update thirdparty/README with correct version information.
and
Bump mbedtls to 2.18.1 (headers).
- Faless
df94010dec
c55e8dd516
2022-07-29 21:56:46 +02:00
e7100658d4 Ported: Fix exit code of --help and --version, and test them in CI
Corrects prior regression which caused ERROR output and exit code of 1. - Bromeon
861e155543
2022-07-29 21:45:04 +02:00
d10acf7390 Ported: Command line arguments '--version' and '--help' return exit code 0 instead of 255
Allows to detect whether those commands executed successfully, which makes integration with shell scripts/CI/bindings straightforward. - Bromeon
da78e92321
2022-07-29 21:35:41 +02:00
01b1c3e99f Ported: Improve documentation for HTTPRequest's timeout property - Calinou
28b9e376cf
2022-07-29 21:30:22 +02:00
d6637c39a7 Ported: AudioStreamPlayer: Clarify that no validation is made on 'bus' name - akien-mga
685cecbd5f
2022-07-29 21:23:58 +02:00
9af3a7a709 Ported sort() for poolVectors from 7b8b91f505 . 2022-07-29 21:18:44 +02:00
8107f6fea6 Fix an another import. 2022-07-29 21:05:20 +02:00
5ebeb6a36c Ported: Add global_translation and global_rotation to Spatial - foxydevloper
5238740fef
2022-07-29 21:02:00 +02:00
Marcel Admiraal
e2987f8914 Update camera position when updating camera limit 2022-07-29 20:55:32 +02:00
Marcel Admiraal
ef7646924a Set initial SceneTree processes times to 0.0 2022-07-29 20:55:06 +02:00
28222d21e5 Ported: HTML5: Make OS.get_locale() match other platforms
- pattlebass
82c3e6229b
2022-07-29 20:54:31 +02:00
Hayden
8e1244c196 Fix crash on NaN offset in path_follower 2d and 3d 2022-07-29 20:52:27 +02:00