Haoyu Qiu
f8afd16c89
Fix memory leak when move to trash fails on Linux
...
(cherry picked from commit 8be49838b3
)
2022-01-25 18:55:52 +01:00
Hugo Locurcio
4f1f76c7ce
Add local web server configuration designed for web editor development
...
Running `npm run serve` in `platform/javascript/` will start
a web server that uses `bin/` as its root folder. This means you
can extract a compiled web editor ZIP in this folder and immediately
be able to test the web editor.
Headers required for the use of SharedArrayBuffer are automatically
added to every response.
(cherry picked from commit 9ef9bfb12c
)
2022-01-25 18:23:39 +01:00
Fabio Alessandrelli
822da984bb
[Net] Fix get_response_body_length for large files.
...
Parsing was fixed, but not the return value for the exposed getter.
(cherry picked from commit 01e5e98312
)
2022-01-25 18:23:04 +01:00
Hugo Locurcio
96a325dec8
Force threads when compiling web editor instead of erroring out
...
This makes the build process more seamless. A similar option is
already forced for initial memorywhen needed.
(cherry picked from commit da19898c24
)
2022-01-25 18:12:19 +01:00
Rémi Verschelde
ed869729ae
Merge pull request #56755 from madmiraal/fix-45592-3.x
2022-01-24 10:06:24 +01:00
lawnjelly
adf14bfdde
Add nodiscard to core math classes to catch c++ errors.
...
A common source of errors is to call functions (such as round()) expecting them to work in place, but them actually being designed only to return the processed value. Not using the return value in this case in indicative of a bug, and can be flagged as a warning by using the [[nodiscard]] attribute.
2022-01-20 17:28:31 +00:00
Rémi Verschelde
a9b10054b8
Merge pull request #56950 from timothyqiu/has-clipboard-3.x
2022-01-20 12:09:53 +01:00
bruvzg
30ee208bd9
[macOS export, 3.x] Implements ad-hoc signing on Linux/Windows, adds extra privacy settings, entitlements warnings and error checking.
2022-01-20 10:46:29 +02:00
bruvzg
0e5f063b5b
Improve iOS icon / loading screen export.
...
Merge "required" / "optional" icons into a single list.
Remove "generate_missing" and automatically rescale icons / loading screens that are missing or have incorrect size.
Print warning if icon or loading screen has incorrect size.
2022-01-19 16:04:16 +01:00
Haoyu Qiu
76297e744d
Add OS.has_clipboard()
to check clipboard content
2022-01-19 20:19:06 +08:00
Rémi Verschelde
c938104a88
Merge pull request #56630 from Pineapple/replace-find-last
2022-01-18 16:36:52 +01:00
Rémi Verschelde
1ee44b2366
ImageLoader: Remove references to unsupported svgz extension
...
I don't see any reference to gzip/svgz supported in the nanosvg library,
and the handful of test gzip compressed svgz files I tried failed loading.
Also cleaning a couple missing includes in platform export code.
2022-01-17 10:52:32 +01:00
Rémi Verschelde
879244c54e
Merge pull request #56015 from bruvzg/phy_code_conv
2022-01-16 11:36:26 +01:00
Marcel Admiraal
949ea2b326
Simplify InputDefault::joy_axis code by using float instead of struct JoyAxis
2022-01-14 15:36:35 +00:00
Rémi Verschelde
a627cdafc5
Update copyright statements to 2022
...
Happy new year to the wonderful Godot community!
2022-01-13 15:54:13 +01:00
Marcel Admiraal
b7545631de
Use mouse event relative motion to calculate mouse speed
2022-01-13 10:29:57 +00:00
Bartłomiej T. Listwon
2f92d5900a
UWP: Simplify QueryPerformanceCounter usage
...
(cherry picked from commit 24fe82da63
)
2022-01-12 17:33:02 +01:00
Bartłomiej T. Listwon
e1429dd80f
Windows: Simplify QueryPerformanceCounter usage
...
(cherry picked from commit 5ba38fb208
)
2022-01-12 17:32:50 +01:00
bruvzg
16bb18c453
[macOS] Improve window activation hack.
...
(cherry picked from commit 927105692f
)
2022-01-12 17:28:08 +01:00
Rémi Verschelde
123fcfaf83
Merge pull request #56676 from winterpixelgames/3.x-android-keystore-paths
2022-01-12 16:46:00 +01:00
Bastiaan Olij
4df4d72caf
Wrong call for create_offscreen_gl
...
We need to use `CallVoidMethod` instead of `CallBooleanMethod` to call `create_offscreen_gl`.
2022-01-12 11:01:24 +11:00
Jason Knight
39070291ef
Android export plugin passes absolute file paths to gradle for keystores.
2022-01-10 15:16:00 -06:00
Rémi Verschelde
8a192cd0ab
Merge pull request #55987 from bruvzg/wt 🤎 3
2022-01-10 16:43:56 +01:00
Bartłomiej T. Listwon
22750b1c03
Replace String::find_last with rfind where possible (backward compatible with old API)
2022-01-08 22:40:44 +01:00
Max Hilbrunner
36af1abbe0
Windows input: fix bracket -> brace for US input
2022-01-07 12:14:21 +01:00
Pierre-Thomas Meisels
7dd8e364b1
OSX: Add signing of directory structure in Library when exporting for OSX.
...
Add exporting of folder structure in PlugIns when exporting for OSX.
2022-01-07 01:15:37 +01:00
Rémi Verschelde
b197de6f5f
Fix typos with codespell
...
Using codespell 2.1.0.
Method:
```
$ cat > ../godot-word-whitelist.txt << EOF
ang
curvelinear
dof
doubleclick
fave
findn
GIRD
leapyear
lod
merchantibility
nd
numer
ois
ony
que
readded
seeked
statics
synching
te
uint
unselect
webp
EOF
$ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"
$ git diff // undo unwanted changes
```
2022-01-07 00:14:54 +01:00
bruvzg
6f81a8ee2c
Fix multiple missing UTF-8 decoding.
...
(cherry picked from commit c69e0d16bc
)
2022-01-06 21:44:40 +01:00
ne0fhyk
0448d4e26e
Fix Android Studio builds.
...
(cherry picked from commit 1345e66935
)
2022-01-06 00:24:42 +01:00
bruvzg
d2558bdc8c
Fix decoding UTF-8 filenames on unzipping.
...
(cherry picked from commit d2573c1636
)
2022-01-06 00:21:37 +01:00
Marcel Admiraal
913855926d
Fix tablet tilt values returning bad values
2022-01-02 12:16:04 +00:00
Rémi Verschelde
50e1764a33
Merge pull request #56059 from bruvzg/macos_gl_off_ctx
2021-12-21 09:20:03 +01:00
bruvzg
ccdf1a9934
[macOS] Fix OpenGL flickering.
...
Fix incorrect context usage for off-screen drawing.
Remove kCGLCEMPEngine, which is causing flicker.
Disable window redraw during resize, when rendering in the separate thread.
2021-12-18 21:02:13 +02:00
bruvzg
59085d5051
[Windows] Improve console handling and execute.
...
Always build with the GUI subsystem.
Redirect stdout and stderr output to the parent process console.
Use CreateProcessW for blocking `execute` calls with piped stdout and stderr (prevent console windows for popping up when used with the GUI subsystem build, and have more consistent behavior with non-blocking calls).
Add `open_console` argument to the `execute` to open a new console window (for both blocking and non-blocking calls).
Remove `interface/editor/hide_console_window` editor setting.
Remove `Toggle System Console` menu option.
Remove `set_console_visible` and `is_console_visible` functions.
2021-12-18 10:13:27 +02:00
Wilson E. Alvarez
1b8a9d56b3
Set default priority on PRIME detection vendor struct.
2021-12-17 15:12:17 -05:00
bruvzg
b4ec1c5817
Backport: Allow for mapping scancodes to current layout
...
Co-authored-by: Frixuu <kontakt@lukasz.xyz>
2021-12-17 13:04:47 +02:00
Sam Lantinga
9efdac2761
Fixed detecting the Valve Streaming Gamepad
...
Fixed the GUID, and compare the contents of the GUID, not just the pointers
(cherry picked from commit 8df0baf6f5
)
2021-12-17 00:14:50 +01:00
Rémi Verschelde
62b181a4ef
Merge pull request #55967 from bruvzg/wt 💩 3
2021-12-16 23:05:40 +01:00
Marcel Admiraal
b5d325e6ff
Only rotate Android sensor values for sensors that need them rotated
2021-12-15 18:15:25 +00:00
bruvzg
9aef3a93dd
[Windows] Detect new Windows Terminal and disable unsupported set_console_visible code.
2021-12-15 20:00:35 +02:00
bruvzg
38c1706a7d
[Windows] Open a new console window for the editor instances.
2021-12-14 14:38:42 +02:00
Aaron Franke
7bf7bd70ac
[3.x] Misc build system fixes
2021-12-10 12:15:16 -06:00
Rémi Verschelde
45aac0b9e9
Merge pull request #55768 from m4gr3d/config_hand_tracking_frequency_3x
2021-12-09 23:05:06 +01:00
Fredia Huya-Kouadio
4f6ce8a7ba
Enable configuration of the android:excludeFromRecents
activity attribute.
...
(cherry picked from commit cfa81ff32a
)
2021-12-09 23:03:19 +01:00
Rémi Verschelde
599ae423ba
Merge pull request #55735 from m4gr3d/add_min_target_sdk_configs
2021-12-09 23:01:56 +01:00
ne0fhyk
9d22ad3c9b
Add support for configuring the xr hand tracking frequency mode
2021-12-09 12:26:06 -08:00
Luis Sanchez
e00d20aa5a
Fix files_dropped in HTML5 export.
...
(Ignore trailing slash when creating the temporary directory)
(cherry picked from commit 40f26cb260
)
2021-12-09 12:05:44 +01:00
Fredia Huya-Kouadio
65cfa28cce
Add configs to specify the min and target sdk versions.
2021-12-08 09:06:09 -08:00
bruvzg
9968d0feea
[macOS] Fix crash handler not printing function names on M1 Macs.
...
(cherry picked from commit c8037ef2e5
)
2021-12-08 10:37:49 +01:00
Fabio Alessandrelli
53ce3f64ad
[HTML5] Fix multi-touch input handling.
...
The code to populate the input data for WebAssembly was incorrectly
overriding values when multiple touches were present due to wrong
indexing.
(cherry picked from commit 470496d8d4
)
2021-11-30 12:20:19 +01:00