Rémi Verschelde
a8a2769bb6
Merge pull request #38713 from aaronfranke/string-64bit
...
Make all String integer conversion methods be 64-bit
2020-07-01 16:01:05 +02:00
Fabio Alessandrelli
1b6e3458b2
Move frame delaying functions from Main to OS.
...
Will allow specific platforms to override it and avoid blocking on the
main/GUI thread.
2020-06-30 19:39:09 +02:00
Rémi Verschelde
5f2295f2df
Merge pull request #39986 from reduz/app-inout-notification
...
Add a separate application focus/in notification
2020-06-30 16:58:46 +02:00
Rémi Verschelde
f3c5f12e39
Merge pull request #38920 from paulherman/tga
...
Expose loading TGA images in Image.
2020-06-30 16:40:28 +02:00
Juan Linietsky
438c380458
Add a separate application focus/in notification out from Window focus notification.
2020-06-30 10:40:06 -03:00
simpu
bfadb882b1
Added Custom Performance Monitor and feature to read intermediate values of Monitor
...
Custom monitors can be added/removed/checked using `Performance.add_custom_monitor`/`Performance.remove_custom_monitor`/`Performance.has_custom_monitor`
The value can be viewed in the `Monitor` tab of Debugger.
Text before `/` is used to categorize the custom monitor.
`EditorPerformanceProfiler` class is created to separate logic from `ScriptEditorDebugger`
User can click on the graph of monitors to read the value at that point.
Graph includes intermediate base lines.
2020-06-29 17:20:29 +05:30
Maganty Rushyendra
aae5f246ff
Fix weekday calculation in get_datetime_from_unix_time for negative times
...
Fix calculation for negative times to ensure Sundays are wrapped around to '0'
instead of '7', making it consistent with the output for positive times.
2020-06-29 14:27:10 +08:00
Juan Linietsky
201d606b3d
Addition of SDFGI for open world global illumination
...
Move GI to a deferred pass
2020-06-26 11:06:48 -03:00
Rémi Verschelde
23f7f86914
Style: Fix copyright headers
2020-06-25 16:33:44 +02:00
Rémi Verschelde
850134aff9
Merge pull request #39617 from mrushyendra/bilinear_interpolation
...
Fix upscaling image with bilinear interpolation option specified
2020-06-24 21:58:43 +02:00
Rémi Verschelde
42c4a701dd
Merge pull request #39755 from Faless/crypto/encryption_pr_4.0
...
Crypto enhancements, AESContext, RSA public key, signature, verification.
2020-06-22 23:31:58 +02:00
Rémi Verschelde
35414f1dec
Merge pull request #39053 from timoschwarzer/static-assert-variant-arg-max
...
Add static_assert checks where code assumes VARIANT_ARG_MAX == 5
2020-06-19 23:51:22 +02:00
Andy Maloney
37a2a5a997
Ensure FileAccessBuffered structs are properly initialized
2020-06-19 11:36:28 -04:00
Maganty Rushyendra
f24ec3878e
Fix upscaling image with bilinear interpolation option specified
...
Fix error in calculation of 4 nearest points in source image when
resizing image with bilinear interpolation.
2020-06-19 09:38:42 +08:00
Fabio Alessandrelli
8e3f9aa681
Implement RSA encryption/decryption.
2020-06-18 15:29:39 +02:00
Fabio Alessandrelli
dfcc11fa52
Implement sign and verify in crypto.
2020-06-18 15:29:39 +02:00
Fabio Alessandrelli
788f18086e
CryptoKey supports public keys.
2020-06-18 15:29:39 +02:00
Fabio Alessandrelli
9a462e07a4
Add AESContext.
...
GDScript interface to CryptoCore::AESContext.
Also add CBC mode in CryptoCore::AESContext and expose it.
2020-06-18 15:26:24 +02:00
Aaron Franke
0fa478a050
Simplify Transform2D get_rotation
2020-06-17 01:00:42 -04:00
Rémi Verschelde
309adb93cd
Merge pull request #39484 from hbina/use_nullptr_in_macros
...
Check pointers against nullptr.
2020-06-16 10:42:56 +02:00
Rémi Verschelde
4b5b60de85
Merge pull request #39189 from touilleMan/issue-38925
...
Unify OS.get_system_time_* and OS.get_unix_time
2020-06-15 23:57:16 +02:00
Hanif Bin Ariffin
4fea536517
Check pointers against nullptr.
2020-06-15 16:20:36 -04:00
Rémi Verschelde
6f938c761e
Merge pull request #39483 from AndreaCatania/euler
...
Added more euler rotation orders support.
2020-06-15 20:38:11 +02:00
Rémi Verschelde
f61e4216b7
Merge pull request #39439 from Lefl1/rename_get_action_list
...
Renamed InputMap.get_action_list to InputMap.action_get_events
2020-06-15 19:59:07 +02:00
Lennard
f515071edc
Renamed InputMap.get_action_list to InputMap.get_action_events
2020-06-15 14:01:53 +02:00
Andrea Catania
2331300989
- Added more euler rotation orders support.
...
- Fixed floating point issue on the old one.
- Fixed the equation on the get_euler_yxz function.
- Added unit tests.
This work has been kindly sponsored by IMVU.
2020-06-12 20:03:27 +02:00
Rémi Verschelde
b3bc5aafc5
Object: Add usage hint to instantiate Object properties in editor
...
Fixes #36372 as Path2D/Path3D's `curve` property no longer uses a Curve
instance as default value, but instead it gets a (unique) default Curve
instance when created through the editor (CreateDialog).
ClassDB gets a sanity check to ensure that we don't do the same mistake
for other properties in the future, but instead use the dedicated
property usage hint.
Fixes #36372 .
Fixes #36650 .
Supersedes #36644 and #36656 .
Co-authored-by: Thakee Nathees <thakeenathees@gmail.com>
Co-authored-by: simpuid <utkarsh.email@yahoo.com>
2020-06-12 14:30:18 +02:00
Rémi Verschelde
cbcc0eacd5
String: Use ABS macro in padding code
...
Follow-up to #39261 .
2020-06-11 11:39:21 +02:00
Rémi Verschelde
7217a7edbd
Merge pull request #39230 from ntfshard/expression_string_singlequote
...
Fix for Expression class: string inside an expression can't be single quoted
2020-06-11 09:37:35 +02:00
Rémi Verschelde
786fc63faa
Merge pull request #39261 from mrushyendra/string_padding
...
Enable zero padding with float specifier for format strings
2020-06-11 09:37:16 +02:00
Pedro J. Estébanez
4e4b1d7568
Fix potential crash when listing leaked objects
...
Note:
Casting to the C++ classes and calling the methods there would work as well,
but would require including he header files for the specific object types handled
here, which wouldn't be OK either.
2020-06-10 20:44:11 +02:00
Rémi Verschelde
47f1faf512
Merge pull request #39409 from akien-mga/astar-get_closest_point-deterministic
...
AStar: Make get_closest_point() deterministic for equidistant points
2020-06-10 10:46:35 +02:00
Rémi Verschelde
187ba4c5a8
AStar: Make get_closest_point() deterministic for equidistant points
...
Closes godotengine/godot-docs#3667.
Supersedes #39405 .
2020-06-09 11:04:12 +02:00
Rémi Verschelde
2b5545270a
Core: Add hints to run with --verbose when leaking nodes/resources at exit
2020-06-08 16:48:21 +02:00
Rémi Verschelde
e7ebda975a
VariantParser: Fix crash on malformed vectors
...
Each time `r_err_str` is set, we should return a parse error.
Removed redundant `return OK;` which were already handled after the big
`if`/`else if`/`else` for `TK_IDENTIFIER`.
Part of #17372 .
2020-06-08 11:38:13 +02:00
Rémi Verschelde
ec1bf96e41
Merge pull request #39200 from azagaya/fix-blend-2
...
Fixing wrong blending rect methods
2020-06-07 15:52:22 +02:00
Fabio Alessandrelli
87cc283b8b
Crypto as a custom instance class.
2020-06-06 17:33:44 +02:00
Fabio Alessandrelli
054f52364f
Fix editor crash when mbedtls is disabled.
2020-06-06 17:33:43 +02:00
Rémi Verschelde
50cb781b1b
Merge pull request #39316 from Anutrix/remove-hashmap-reduntant-func
...
Remove unused function get_key_value_ptr_array from hash_map.h and another tiny fix.
2020-06-05 11:53:54 +02:00
unknown
c9edc82b3b
Remove unused function get_key_value_ptr_array from hash_map.h and also fix parameter name in function get_key_list.
2020-06-05 13:13:42 +05:30
Rémi Verschelde
938334cc9e
Sync controller mappings DB with SDL2 community repo
...
Synced with gabomdq/SDL_GameControllerDB@6191f6333b .
2020-06-04 15:52:27 +02:00
Maganty Rushyendra
b7d835d9ca
Enable zero padding with float specifier for format strings
...
Godot currently supports zero padding for integers, octals and
hexadecimals when using format strings, but not for floats.
This commit adds support for zero padding for floats, thus ensuring
consistent behavior for all types, and making Godot's format specifiers'
behavior closer to c's `printf()`.
Before: `print("<%07.2f>" % -0.2345)` prints `< -0.23>`.
Now: `print("<%07.2f>" % -0.2345)` prints `<-000.23>`.
`print("<%7.2f>" % -0.2345)` prints `< -0.23>`.
2020-06-03 21:21:27 +08:00
Yuri Roubinsky
d7cf1b5c73
Fix docs generation for Vector2i/Vector3i/Rect2i
2020-06-03 15:22:26 +03:00
Aaron Franke
25c978730b
Rename String bin_to_int64 to bin_to_int
...
And also change String static to_int(const char *) to return int64_t
2020-06-03 00:04:15 -04:00
Aaron Franke
e5ae89775a
Remove 32-bit String hex_to_int method
2020-06-03 00:03:34 -04:00
Aaron Franke
bb8aa107fd
Remove 32-bit String to_int method
2020-06-03 00:03:34 -04:00
ntfs.hard
ec164b2301
Fix for Expression class: inner string can be single quoted
2020-06-02 13:44:53 +03:00
Hugo Locurcio
9c0d214776
Print errors when calling MIDI input methods on unsupported platforms
...
This partially addresses #32065 .
2020-05-31 19:10:27 +02:00
azagaya
b211a86ebe
Fixing wrong blending rect methods
...
Using Color.blend function instead of custom code
Fixed clang_format
Removed unnecessary help
2020-05-31 14:06:53 -03:00
Emmanuel Leblond
c6de3872f9
Remove OS.get_system_time_secs/get_system_time_msecs and change OS.get_unix_time return type to double
2020-05-31 14:19:31 +02:00