summaryrefslogtreecommitdiff
path: root/core
AgeCommit message (Collapse)Author
2020-07-31Fixes issue with LocalVector remove functionAndrea Catania
2020-07-28Check if global class file still exists before registering itWilson E. Alvarez
2020-07-27Make all String float conversion methods be 64-bitAaron Franke
2020-07-28SCons: Refactor running commands through buildersAndrii Doroshenko (Xrayez)
A new `env.Run` method is added which allows to control the verbosity of builders output automatically depending on whether the "verbose" option is set. It also allows to optionally run any SCons commands in a subprocess using the existing `run_in_subprocess` method, unifying the interface. `Action` objects wrap all builder functions to include a short build message associated with any action. Notably, this removes quite verbose output generated by `make_doc_header` and `make_editor_icons_action` builders.
2020-07-26Merge pull request #39898 from Meriipu/master_gdscriptRémi Verschelde
GDScript: Clarified/fixed inaccuracies in the built-in function docs.
2020-07-26Merge pull request #40670 from vnen/remove-multilevel-callRémi Verschelde
Remove multilevel calls
2020-07-25Core Variant: switch from 'real' to 'float' to allow building with NEED_LONG_INTSergey Minakov
2020-07-25Core Callable: fixed variant call casterSergey Minakov
Use same call to VariantCaster in release build as used in VariantCasterAndValidate::call method
2020-07-25GDScript: Clarified/fixed inaccuracies in the built-in function docs.Meriipu
The input to smoothstep is not actually a weight, and the decscription of smoothstep was pretty hard to understand and easy to misinterpret. Clarified what it means to be approximately equal. nearest_po2 does not do what the descriptions says it does. For one, it returns the same power if the input is a power of 2. Second, it returns 0 if the input is negative or 0, while the smallest possible integral power of 2 actually is 1 (2^0 = 1). Due to the implementation and how it is used in a lot of places, it does not seem wise to change such a core function however, and I decided it is better to alter the description of the built-in. Added a few examples/clarifications/edge-cases.
2020-07-25Merge pull request #38900 from bruvzg/docs_ignore_os_spec_def_valsRémi Verschelde
Docs: Ignore OS specific values (constants, project settings, properties)
2020-07-24Show errors on Object.call_deferredWilson E. Alvarez
2020-07-24Remove multilevel callsGeorge Marques
In general they are more confusing to users because they expect inheritance to fully override parent methods. This behavior can be enabled by script writers using a simple super() call.
2020-07-24t Add unit testing to Godot using DocTest and added to GitHub Actions CIRevoluPowered
Implements exit codes into the engine so tests can return their statuses. Ideally we don't do this, and we use FIXUP logic to 'begin' and 'end' the engine execution for tests specifically. Since realistically we're initialising the engine here we don't want to do that, since String should not require an engine startup to test a single header. This lowers the complexity of running the unit tests and even for physics should be possible to implement such a fix.
2020-07-24Merge pull request #40598 from vnen/gdscript-2.0Rémi Verschelde
GDScript 2.0 (again)
2020-07-22issue-40396 - Added missing error strings to JSON parsing when array or ↵Adam Bates
object is never closed.
2020-07-21Merge pull request #40450 from asmaloney/spellingRémi Verschelde
Fix spelling & grammar in comments, docs, and messages
2020-07-21Fix spelling & grammar in comments, docs, and messagesAndy Maloney
2020-07-21Update core documentation to match recent C# changesAaron Franke
Also a few minor API changes like adding AABB.abs() Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2020-07-20Add warning checks in GDScript analyzerGeorge Marques
Reenable checking those when validating code.
2020-07-20Merge pull request #40161 from vnen/classdb-info-methodsRémi Verschelde
Add methods in ClassDB to get property/method/constant/enum info
2020-07-20Merge pull request #40468 from asmaloney/spelling-codeRémi Verschelde
Fix spelling of a var, a struct, and some message output
2020-07-20Fix Directory make_dir and make_dir_recursiveNathan Franke
2020-07-17Fix spelling of a var, a struct, and message outputAndy Maloney
2020-07-15Docs: Ignore OS specific values (constants, project settings, properties).bruvzg
2020-07-14Merge pull request #40374 from Faless/udp/server_abstractionRémi Verschelde
UDPServer uses single socket, abstract clients.
2020-07-14UDPServer handles PacketPeerUDP-client associationFabio Alessandrelli
UDPServer now uses a single socket which is shared with the PacketPeerUDP it creates and has a new `poll` function to read incoming packets on that socket and delivers them to the appropriate peer. PacketPeerUDP created this way never reads from the socket, but are allowed to write on it using sendto. This is needed because Windows (unlike Linux/BSD) does not support packet routing when multiple sockets are bound on the same address/port.
2020-07-14PO loader: Fix unclosed files and error messagesRémi Verschelde
Trying to get `f->get_path()` after deleting `f` was not super clever :) Fixes #40324.
2020-07-14Merge pull request #38440 from Paulb23/syntax_highlighter_refactorRémi Verschelde
Syntax highlighter refactor
2020-07-13Commit other files changed by file_format.shAaron Franke
2020-07-13Fix overriding compression related settingsAndrii Doroshenko (Xrayez)
2020-07-11Extract Syntax highlighting from TextEdit and add EditorSyntaxHighlighterPaulb23
- Extacted all syntax highlighting code from text edit - Removed enable syntax highlighting from text edit - Added line_edited_from signal to text_edit - Renamed get/set_syntax_highlighting to get/set_syntax_highlighter - Added EditorSyntaxHighligher
2020-07-11Add core types to ScriptLanguagePaulb23
2020-07-10Add override keywords.Marcel Admiraal
2020-07-10Merge pull request #40121 from Calinou/enable-file-loggingRémi Verschelde
Enable file logging by default on desktops to help with troubleshooting
2020-07-10Follow-Up Fix Directory OpenNathan Franke
2020-07-09Keep debug & verbose options after loading project from project managerPouleyKetchoupp
2020-07-08Enable file logging by default on desktops to help with troubleshootingHugo Locurcio
- Use the `.log` file extension (recognized on Windows out of the box) to better hint that generated files are logs. Some editors provide dedicated syntax highlighting for those files. - Use an underscore to separate the basename from the date and the date from the time in log filenames. This makes the filename easier to read. - Keep only 5 log files by default to decrease disk usage in case messages are spammed.
2020-07-06Add sort and has methods to PackedArraysAaron Franke
2020-07-07Merge pull request #40151 from nathanfranke/fix-directory-open-checkRémi Verschelde
Fix Directory Open Check
2020-07-06Add methods in ClassDB to get property/method/constant/enum infoGeorge Marques
Without the need to iterate the whole list.
2020-07-06Fix Directory Open CheckNathan Franke
2020-07-06Add a map of autoloads to ProjectSettingsGeorge Marques
So places that need to look into it can use the list instead of parsing ProjectSettings details (like checking "*" in path for testing if it's singleton).
2020-07-05Merge pull request #40138 from neikeq/error-macros-use-bool-literalsRémi Verschelde
Fix 'modernize-use-bool-literals' clang-tidy warnings in error macros
2020-07-05Fix 'modernize-use-bool-literals' clang-tidy warnings in error macrosIgnacio Etcheverry
2020-07-04Merge pull request #40092 from hinlopen/remove-find-lastRémi Verschelde
Remove String::find_last (same as rfind)
2020-07-03Remove String::find_last (same as rfind)Stijn Hinlopen
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.