summaryrefslogtreecommitdiff
path: root/core
AgeCommit message (Collapse)Author
2021-02-25Fix Godot returned status code on unexpected errorEmmanuel Leblond
2021-02-25Improve the `OS.get_environment()`/`OS.set_environment()` documentationHugo Locurcio
2021-02-25Merge pull request #46414 from RandomShaper/fix_thread_self_joinRémi Verschelde
Prevent thread wait on itself for finish
2021-02-25Expose set_environment to GDScriptBastiaan Olij
2021-02-25Prevent thread wait on itself for finishPedro J. Estébanez
2021-02-25Merge pull request #46401 from kleonc/geometry2d_make_atlas_crash_fixRémi Verschelde
Geometry2D::make_atlas Fail is passed invalid rect size
2021-02-24Geometry2D::make_atlas Fail is passed invalid rect sizekleonc
2021-02-24Change CRASH_COND to ERR_FAIL in Cowdata::setRafał Mikrut
2021-02-24Merge pull request #46371 from EricEzaM/PR/fix-osx-inputmap-spammed-errorsRémi Verschelde
Fixed 'nonexistent action' errors spammed at startup on OSX
2021-02-24Fixed 'nonexistent action' errors spammed at startup on OSXEric M
2021-02-24Input: Throw error if action doesn't existLiz Haas
Thow errors if requesting an unexisting InputMap action. Makes `Input.is_action_*` methods consistents with `Event.is_action_*` which already throw errors. fixes #33303
2021-02-24Merge pull request #46354 from reduz/importer-defaults-editorRémi Verschelde
Added Import Defaults Editor in Project Settings
2021-02-24Merge pull request #45914 from HenryWConklin/45841-xml-entitiesRémi Verschelde
Add support for numeric XML entities to XMLParser
2021-02-24Merge pull request #46195 from AndyBarcia/FixLanguageCodesIncosistenciesRémi Verschelde
Fix some inconsistent ISO-639 language codes
2021-02-23Added Import Defaults Editor in Project Settingsreduz
-Change importer defaults in project settings. -Ability to change them or reset them.
2021-02-23Bind ClockDirection enumGeorge Marques
It's the only enum in math_defs.h not bound, and it's used by Plane.
2021-02-23Merge pull request #46316 from akien-mga/input-ui_redo-swap-orderRémi Verschelde
Input: Swap events for ui_redo to favor Shift+Ctrl+Z over Ctrl+Y
2021-02-22Fix unchecked array access in build_*_planesDelf Neumärker
2021-02-22Input: Swap events for ui_redo to favor Shift+Ctrl+Z over Ctrl+YRémi Verschelde
That's the most common one we've been using for the general editor, and while the script editor also supports Ctrl+Y, it should have lower priority. In theory this code should make both be supported the same but for some reason the general editor only seems to use the first entry (the script editor does support both).
2021-02-19Merge pull request #46194 from Calinou/os-delay-no-negativeRémi Verschelde
Don't allow negative values for `OS.delay_usec()`/`OS.delay_msec()`
2021-02-19doc: Sync classref with current sourceRémi Verschelde
And fix various bogus bindings following previous PRs.
2021-02-19Improve robustness of atomicsPedro J. Estébanez
And fix increment in `CowData` not being conditional anymore after the recent changes. Co-authored-by: Hein-Pieter van Braam-Stewart <hp@tmm.cx>
2021-02-18Don't allow negative values for `OS.delay_usec()`/`OS.delay_msec()`Hugo Locurcio
This closes #46190.
2021-02-18Fixes some inconsistent ISO-639 language codesandybarcia
And also adds tmz (Central Atlas Tamazight) as a language
2021-02-18Merge pull request #46131 from bruvzg/move_tablet_to_dsRémi Verschelde
Move tablet driver API from OS to DisplayServer
2021-02-18Merge pull request #45617 from RandomShaper/modernize_atomicsRémi Verschelde
Modernize atomics (and fix `volatile`)
2021-02-18Modernize atomicsPedro J. Estébanez
- Based on C++11's `atomic` - Reworked `SafeRefCount` (based on the rewrite by @hpvb) - Replaced free atomic functions by the new `SafeNumeric<T>` - Replaced wrong cases of `volatile bool` by the new `SafeFlag` - Platform-specific implementations no longer needed Co-authored-by: Hein-Pieter van Braam-Stewart <hp@tmm.cx>
2021-02-18Removed hardcoded shortcuts from /scene and converted to input actionsEric M
This removes hardcoded actions from things like LineEdit and TextEdit. Previously, things like copy, paste, etc were all hardcoded to Ctrl+C, Ctrl+V, etc. They could not be changed. This allows the possibility of them being changed, by making them use the action map. This has the added benefit of greatly simplifying the input handling logic in those controls. The logic which was previously in a huge and hard to follow switch statement has been extracted to individual methods.
2021-02-18Added ability to override built-in actions for the editorEric M
This adds the ability to add overrides for built-in actions (i.e. ui_*) in the editor. Also added a number of additional built-in actions for various text-related actions, gui-generic actions (like copy and paste) and graph-related actions (duplicate nodes), etc. Moved the definition of input actions to input_map, rather than in project_settings so the editor can make use of these actions as well.
2021-02-18Added convenience create_reference methods for Key and JoyButton inputsEric M
2021-02-18Move tablet driver API from OS to DisplayServer.bruvzg
2021-02-18Reorganize Project Settingsreduz
-Advanced Settings toggle also hides advanced properties when disabled -Simplified Advanced Bar (errors were just plain redundant) -Reorganized rendering quality settings. -Reorganized miscelaneous settings for clean up.
2021-02-16Use Vector3.UP as a default value for look_at's up vectorAaron Franke
2021-02-16Added signed_angle_to for Vector3JestemStefan
2021-02-15Merge pull request #44355 from ↵Rémi Verschelde
EricEzaM/PR/fix-action-false-positives-and-allow-checking-exact-matches Allow checking for exact matches with Action events.
2021-02-14Add support for numeric XML entities to XMLParserHenry Conklin
* Add support for decimal numeric entities to String::xml_unescape * Add more error checks to String::xml_unescape * Refactor XMLParser to use String::xml_unescape instead of an internal implementation
2021-02-13Don't save project settings when not necessarykobewi
2021-02-13Merge pull request #44396 from Calinou/add-file-flush-methodRémi Verschelde
Expose a `File.flush()` method to scripting
2021-02-13Expose a `File.flush()` method to scriptingHugo Locurcio
This can be used to ensure a file has its contents saved even if the project crashes or is killed by the user (among other use cases). See discussion in #29075.
2021-02-12Add ability to change Icon Saturationreduz
-Allows for more theme freedom -Allows for entirely B&W themes.
2021-02-11Improve resource load cachereduz
-Added a new method in Resource: reset_state , used for reloading the same resource from disk -Added a new cache mode "replace" in ResourceLoader, which reuses existing loaded sub-resources but resets their data from disk (or replaces them if they chaged type) -Because the correct sub-resource paths are always loaded now, this fixes bugs with subresource folding or subresource ordering when saving.
2021-02-10Removed _change_notifyreduz
-For inspector refresh, the inspector now detects if a property change by polling a few times per second and then does update the control if so. This process is very cheap. -For property list refresh, a new signal (property_list_changed) was added to Object. _change_notify() is replaced by notify_property_list_changed() -Changed all objects using the old method to the signal, or just deleted the calls to _change_notify(<property>) since they are unnecesary now.
2021-02-10Cylinder support in Godot Physics 3DPouleyKetchoupp
Cylinder collision detection uses a mix of SAT and GJKEPA. GJKEPA is used to find the best separation axis in cases where finding it analytically is too complex. Changes in SAT solver: Added support for generating separation axes for cylinder shape. Added support for generating contact points with circle feature. Changes in GJKEPA solver: Updated from latest Bullet version which includes EPA fixes in some scenarios. Setting a lower EPA_ACCURACY to fix accuracy problems with cylinder vs. cylinder in some cases.
2021-02-10Make Servers truly Thread Safereduz
-Rendering server now uses a split RID allocate/initialize internally, this allows generating RIDs immediately but initialization to happen later on the proper thread (as rendering APIs generally requiere to call on the right thread). -RenderingServerWrapMT is no more, multithreading is done in RenderingServerDefault. -Some functions like texture or mesh creation, when renderer supports it, can register and return immediately (so no waiting for server API to flush, and saving staging and command buffer memory). -3D physics server changed to be made multithread friendly. -Added PhysicsServer3DWrapMT to use 3D physics server from multiple threads. -Disablet Bullet (too much effort to make multithread friendly, this needs to be fixed eventually).
2021-02-10Merge pull request #31747 from KoBeWi/scene_stalkingRémi Verschelde
Detect external modification of scenes
2021-02-09Fixes crash when exiting with --verbose with leaked resourcesGilles Roudière
2021-02-09Detect external modification of project.godotkobewi
2021-02-09Make String::ends_with don't use String::rfindkleonc
2021-02-08Sync controller mappings DB with SDL2 community repoRémi Verschelde
Synced with gabomdq/SDL_GameControllerDB@f72b68b8b090e689ed21f600e89db9a661edb696. Partial revert of #45790.
2021-02-08Merge pull request #45797 from madmiraal/add-new-sdl-keywordsRémi Verschelde
Add support for new SDL gamecontroller keywords.