summaryrefslogtreecommitdiff
path: root/core
AgeCommit message (Collapse)Author
2020-07-03Image: Improve error messages for invalid creation sizeRémi Verschelde
2020-07-02Merge pull request #40009 from mrushyendra/ustring_overflow_masterRémi Verschelde
Fix overflow and underflow checks for string conversion to int
2020-07-02Merge pull request #34028 from nekomatata/list-erase-not-foundRémi Verschelde
Removed errors when List::erase() can't find the value
2020-07-02Fix overflow and underflow checks for string conversion to intMaganty Rushyendra
Current error checks for to_int and to_int64 do not issue overflow error messages for INT64_MAX + 1, INT64_MAX + 2, and other numbers close to the integer limits. Likewise, error checks for hex_to_int, hex_to_int64 and bin_to_int64 issue false positive error messages for INT64_MIN or INT32_MIN. This commit fixes these error checks.
2020-07-01Merge pull request #33061 from madmiraal/nullpointerdereferenceRémi Verschelde
Call CRASH_COND_MSG if key not found in HashMap get(key) functions.
2020-07-01Merge pull request #38713 from aaronfranke/string-64bitRémi Verschelde
Make all String integer conversion methods be 64-bit
2020-07-01Call CRASH_COND_MSG if key not found in HashMap get function.Marcel Admiraal
2020-07-01Removed errors when List::erase() can't find the valuePouleyKetchoupp
This change makes the behavior consistent when the value is not found between erasing from an empty list (no error, just returning false) and erasing from a non-empty list (previously displaying triggering an error and returning false). Error message previously triggered: ERROR: erase: Condition ' !p_I ' is true. returned: false At: ./core/list.h:157.
2020-06-30Move frame delaying functions from Main to OS.Fabio Alessandrelli
Will allow specific platforms to override it and avoid blocking on the main/GUI thread.
2020-06-30Merge pull request #39986 from reduz/app-inout-notificationRémi Verschelde
Add a separate application focus/in notification
2020-06-30Merge pull request #38920 from paulherman/tgaRémi Verschelde
Expose loading TGA images in Image.
2020-06-30Add a separate application focus/in notification out from Window focus ↵Juan Linietsky
notification.
2020-06-29Added Custom Performance Monitor and feature to read intermediate values of ↵simpu
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-29Fix weekday calculation in get_datetime_from_unix_time for negative timesMaganty Rushyendra
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-26Addition of SDFGI for open world global illuminationJuan Linietsky
Move GI to a deferred pass
2020-06-25Style: Fix copyright headersRémi Verschelde
2020-06-24Merge pull request #39617 from mrushyendra/bilinear_interpolationRémi Verschelde
Fix upscaling image with bilinear interpolation option specified
2020-06-22Merge pull request #39755 from Faless/crypto/encryption_pr_4.0Rémi Verschelde
Crypto enhancements, AESContext, RSA public key, signature, verification.
2020-06-19Merge pull request #39053 from timoschwarzer/static-assert-variant-arg-maxRémi Verschelde
Add static_assert checks where code assumes VARIANT_ARG_MAX == 5
2020-06-19Ensure FileAccessBuffered structs are properly initializedAndy Maloney
2020-06-19Fix upscaling image with bilinear interpolation option specifiedMaganty Rushyendra
Fix error in calculation of 4 nearest points in source image when resizing image with bilinear interpolation.
2020-06-18Implement RSA encryption/decryption.Fabio Alessandrelli
2020-06-18Implement sign and verify in crypto.Fabio Alessandrelli
2020-06-18CryptoKey supports public keys.Fabio Alessandrelli
2020-06-18Add AESContext.Fabio Alessandrelli
GDScript interface to CryptoCore::AESContext. Also add CBC mode in CryptoCore::AESContext and expose it.
2020-06-17Simplify Transform2D get_rotationAaron Franke
2020-06-16Merge pull request #39484 from hbina/use_nullptr_in_macrosRémi Verschelde
Check pointers against nullptr.
2020-06-15Merge pull request #39189 from touilleMan/issue-38925Rémi Verschelde
Unify OS.get_system_time_* and OS.get_unix_time
2020-06-15Check pointers against nullptr.Hanif Bin Ariffin
2020-06-15Merge pull request #39483 from AndreaCatania/eulerRémi Verschelde
Added more euler rotation orders support.
2020-06-15Merge pull request #39439 from Lefl1/rename_get_action_listRémi Verschelde
Renamed InputMap.get_action_list to InputMap.action_get_events
2020-06-15Renamed InputMap.get_action_list to InputMap.get_action_eventsLennard
2020-06-12- Added more euler rotation orders support.Andrea Catania
- 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-12Object: Add usage hint to instantiate Object properties in editorRémi Verschelde
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-11String: Use ABS macro in padding codeRémi Verschelde
Follow-up to #39261.
2020-06-11Merge pull request #39230 from ntfshard/expression_string_singlequoteRémi Verschelde
Fix for Expression class: string inside an expression can't be single quoted
2020-06-11Merge pull request #39261 from mrushyendra/string_paddingRémi Verschelde
Enable zero padding with float specifier for format strings
2020-06-10Fix potential crash when listing leaked objectsPedro J. Estébanez
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-10Merge pull request #39409 from akien-mga/astar-get_closest_point-deterministicRémi Verschelde
AStar: Make get_closest_point() deterministic for equidistant points
2020-06-09AStar: Make get_closest_point() deterministic for equidistant pointsRémi Verschelde
Closes godotengine/godot-docs#3667. Supersedes #39405.
2020-06-08Core: Add hints to run with --verbose when leaking nodes/resources at exitRémi Verschelde
2020-06-08VariantParser: Fix crash on malformed vectorsRémi Verschelde
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-07Merge pull request #39200 from azagaya/fix-blend-2Rémi Verschelde
Fixing wrong blending rect methods
2020-06-06Crypto as a custom instance class.Fabio Alessandrelli
2020-06-06Fix editor crash when mbedtls is disabled.Fabio Alessandrelli
2020-06-05Merge pull request #39316 from Anutrix/remove-hashmap-reduntant-funcRémi Verschelde
Remove unused function get_key_value_ptr_array from hash_map.h and another tiny fix.
2020-06-05Remove unused function get_key_value_ptr_array from hash_map.h and also fix ↵unknown
parameter name in function get_key_list.
2020-06-04Sync controller mappings DB with SDL2 community repoRémi Verschelde
Synced with gabomdq/SDL_GameControllerDB@6191f6333bd66644c6a208fabb9fd5dabf0a5d43.
2020-06-03Enable zero padding with float specifier for format stringsMaganty Rushyendra
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-03Fix docs generation for Vector2i/Vector3i/Rect2iYuri Roubinsky