summaryrefslogtreecommitdiff
path: root/core
AgeCommit message (Collapse)Author
2023-01-16Merge pull request #71279 from vonagam/fix-iterator-number-typeRémi Verschelde
GDScript: Fix typing of iterator in for loop
2023-01-16Linux/BSD: Add LINUXBSD_ENABLED define for non X11-related checksRémi Verschelde
2023-01-16Merge pull request #70557 from KoBeWi/class_yeetRémi Verschelde
Move global script class cache to separate file
2023-01-16Merge pull request #64021 from ajreckof/change-shortcut-for-rect-tool-tilemapRémi Verschelde
Add `Key::CTRL_OR_CMD` and use it to fix shortcut for tilemap painting tools on macOS
2023-01-16Move global script class cache to separate filekobewi
2023-01-15add CMD_OR_CTRL as a Key and not just a key modifierajreckof
2023-01-15Rename `center` method to `get_center` in Plane.Raul Santos
2023-01-13Refactor ProjectSetting overridesJuan Linietsky
* Overrides no longer happen for set/get. * They must be checked with a new function: `ProjectSettings::get_setting_with_override()`. * GLOBAL_DEF/GLOBAL_GET updated to use this This change solves many problems: * General confusion about getting the actual or overriden setting. * Feature tags available after settings are loaded were being ignored, they are now considered. * Hacks required for the Project Settings editor to work. Fixes #64100. Fixes #64014. Fixes #61908.
2023-01-13GDScript: Fix typing of iterator in for loopDmitrii Maganov
2023-01-12Merge pull request #68450 from KoBeWi/bracket_escapistRémi Verschelde
Allow to escape closing brackets in CFG tags
2023-01-12Merge pull request #70714 from Calinou/doc-os-stdinRémi Verschelde
Improve documentation for `OS.read_string_from_stdin()`
2023-01-11Improve documentation for `OS.read_string_from_stdin()`Hugo Locurcio
This makes it clearer that calls to this method are blocking. The unused method parameter was also removed.
2023-01-10Fix Callable call error reporting.Juan Linietsky
* Fix potential crash when using bind in `Variant::get_callable_error_text()` * Properly compute bound arguments so they can be properly shown. * Add a function to obtain the actual bound arguments.
2023-01-10Merge pull request #70726 from heppocogne/Fix-open_compressed-get_pathRémi Verschelde
Fix `get_path()` is not working when files are opend with `open_compressed`
2023-01-09Merge pull request #71051 from vonagam/consts-are-deep-startRémi Verschelde
GDScript: Begin making constants deep, not shallow or flat
2023-01-09Merge pull request #69616 from reduz/change-uuidRémi Verschelde
Ability to change a resource UID from API
2023-01-09Ability to change a resource UID from APIJuan Linietsky
* Works for text, binary and imported resources * Allows better clean up of duplicate files. TODO (future PRs): * Use this API for assigning new UIDs to copied files. * Use this API for UID conflict on FS scanning (if more than one file has the same UID, the newer one(s) should get assigned a different UID).
2023-01-09Removed unused property hints and `Object::get_translatable_strings()`Juan Linietsky
* Remove unused `EditorPropertyMember` and related hints, previouly used by VisualScript. Such logic should be implemented in the VS module itself. * As the above broke compatibility with the VS module, clean up the other hacks that were still in core in support of VisualScript. * `PROPERTY_USAGE_INTERNATIONALIZED` was only used in Object's `get_translatable_strings()`, which is a legacy function not used anywhere. So both are removed. * Reordered some usage flags after the above removal to minimize the diff. * General clean up. Fixes #30203. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2023-01-09Merge pull request #71082 from AThousandShips/array_find_fixRémi Verschelde
Fix for comparisons with PackedArrays
2023-01-09Merge pull request #64795 from RandomShaper/fix_saferefcountRémi Verschelde
Prevent misuse of SafeRefCount
2023-01-09Prevent misuse of SafeRefCountPedro J. Estébanez
2023-01-09Merge pull request #70996 from reduz/properly-report-callable-bound-argumentsRémi Verschelde
Properly report Callable bound arguments
2023-01-09Merge pull request #71045 from reduz/use-bitfield-in-core-typesRémi Verschelde
Use BitField<> in core type masks
2023-01-08Properly report Callable bound argumentsJuan Linietsky
Fixes #63213 Adds a function: Callable::get_amount_of_arguments_bound() to query this in callables. Exposed to the engine API.
2023-01-08Merge pull request #71052 from Chaosus/fix_astargrid2dRémi Verschelde
Fix error in `AstarGrid2D::get_id_path`
2023-01-08Merge pull request #71013 from voidedWarranties/fix_ext_property_default_valueRémi Verschelde
Fix `ScriptInstanceExtension::get_property_default_value` return value
2023-01-08Use BitField<> in core type masksJuan Linietsky
* All core types masks are now correctly marked as bitfields. * The enum hacks in MouseButtonMask and many other types are gone. This ensures that binders to other languages non C++ can actually implement type safe bitmasks. * Most bitmask operations replaced by functions in BitField<> * Key is still a problem because its enum and mask at the same time. While it kind of works in C++, this most likely can't be implemented safely in other languages and will have to be changed at some point. Mostly left as-is. * Documentation and API dump updated to reflect bitfields in core types.
2023-01-08Fix for PackedArray comparisonNinni Pipping
2023-01-08Fix error in `AstarGrid2D::get_id_path`Yuri Rubinsky
2023-01-08GDScript: Begin making constants deep, not shallow or flatDmitrii Maganov
2023-01-07Merge pull request #70939 from bruvzg/win_screen_2Rémi Verschelde
Add support for the custom initial screen for the main window, fix primary screen detection.
2023-01-07Merge pull request #71000 from reduz/callable-bind-from-arrayRémi Verschelde
Allow binding Callable arguments from an array
2023-01-07Add support for the custom initial screen for the main window, fix primary ↵bruvzg
screen detection.
2023-01-06Fix `ScriptInstanceExtension::get_property_default_value` return valuevoidedWarranties
2023-01-06Merge pull request #68429 from KoBeWi/PropertySettingsRémi Verschelde
Add PropertyInfo overload for GLOBAL_DEF
2023-01-06Merge pull request #70995 from reduz/do-not-bind-variant-immutableRémi Verschelde
Unbind Variant methods that change immutable types.
2023-01-06Allow binding Callable arguments from an arrayJuan Linietsky
Restores 3.x functionality that was removed in the Signal/Callable refactor of 4.0. Fixes #64668. Implements https://github.com/godotengine/godot-proposals/issues/6034 Usage: ```GDScript callable.bindv([arg1,arg2,arg3]) ```
2023-01-06Unbind Variant methods that change immutable types.Juan Linietsky
Fixes #62706. Code is commented instead of removed to clarify why they should not be re-added.
2023-01-06Fix jumping in `AStarGrid2D` when `DIAGONAL_MODE_NEVER` is enabledYuri Rubinsky
2023-01-06Merge pull request #64253 from heppocogne/Fix-native-enum-release-1Rémi Verschelde
Register enum type names in release build
2023-01-06Merge pull request #70547 from TokageItLab/pingpong-wrapRémi Verschelde
Fix pingpong-loop with `loop_wrap` is not working & clean-up cubic interpolation key retrieve process
2023-01-05One Copyright Update to rule them allRémi Verschelde
As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
2023-01-03Merge pull request #67694 from aaronfranke/its-timeRémi Verschelde
Remove duplicate Month and Weekday enums
2023-01-03Merge pull request #70482 from bruvzg/ios_pencilRémi Verschelde
[iOS] Add Apple Pencil pressure and tilt support.
2023-01-03Merge pull request #70702 from vnen/gdscript-error-on-assign-voidRémi Verschelde
GDScript: Error when assigning return value of void function
2023-01-02Merge pull request #67853 from Zylann/fix_lods_with_doublesClay John
Fix usages of mesh simplification functions in float=64 builds
2023-01-01Optimize `wrapf` function a bitYuri Rubinsky
2022-12-30GDScript: Error when assigning return value of void functionGeorge Marques
This also makes built-in method calls empty the return value when the method is void, to avoid keeping returning a garbage value in such case.
2022-12-30Fix `get_path()` is not working when files are opend with `open_compressed`heppocogne
And also fixed `get_absolute_path()` in the same way
2022-12-30Register native base class name of enum types when release buildheppocogne