summaryrefslogtreecommitdiffstats
path: root/core
Commit message (Collapse)AuthorAgeFilesLines
* Check if resource exists before loadingTomasz Chabora2020-01-081-0/+5
|
* Merge pull request #34875 from neikeq/api-hash-no-underscore-methodbindsRémi Verschelde2020-01-081-0/+7
|\ | | | | ClassDB: Exclude method binds starting with '_' from API hash
| * ClassDB: Exclude method binds starting with '_' from API hashIgnacio Etcheverry2020-01-071-0/+7
| | | | | | | | | | These methods are not meant to be part of the scripting API. These are not the same as virtual methods starting with '_', e.g.: '_process'.
* | Merge pull request #34020 from gytsen/unify-pack-versionRémi Verschelde2020-01-065-24/+27
|\ \ | | | | | | PCK: Set VERSION_PATCH in header, factor out header magic
| * | PCK: Set VERSION_PATCH in header, factor out header magicJoost Heitbrink2020-01-065-24/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unify pack file version and magic to avoid hardcoded literals. `version.py` now always includes `patch` even for the first release in a new stable branch (e.g. 3.2). The public name stays without the patch number, but `Engine.get_version_info()` already included `patch == 0`, and we can remove some extra handling of undefined `VERSION_PATCH` this way. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
* | | Merge pull request #34296 from timothyqiu/lock-33072Rémi Verschelde2020-01-061-1/+4
|\ \ \ | |/ / |/| | Fixes crash when using Resource::_take_over_path
| * | Fixes crash when using Resource::_take_over_pathHaoyu Qiu2019-12-121-1/+4
| | |
* | | Merge pull request #33967 from Calinou/add-os-is-window-focusedRémi Verschelde2020-01-063-0/+7
|\ \ \ | |_|/ |/| | Add an `OS.is_window_focused()` getter
| * | Add an `OS.is_window_focused()` getterHugo Locurcio2019-11-283-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | This makes it possible to know whether the window is focused at a given time, without having to track the focus state manually using `NOTIFICATION_WM_FOCUS_IN` and `NOTIFICATION_WM_FOCUS_OUT`. This partially addresses #33928.
* | | Merge pull request #34782 from akien-mga/multiplayerapi-set_network_peer-invalidRémi Verschelde2020-01-031-2/+3
|\ \ \ | | | | | | | | MultiplayerAPI: Fix disconnect errors when passing invalid peer
| * | | MultiplayerAPI: Fix disconnect errors when passing invalid peerRémi Verschelde2020-01-031-2/+3
| | | | | | | | | | | | | | | | Fixes #34634.
* | | | Merge pull request #34772 from clayjohn/ETC-support-alphaRémi Verschelde2020-01-031-16/+16
|\ \ \ \ | | | | | | | | | | Fallback to RGBA4444 for textures with alpha set to ETC compression
| * | | | Fallback to RGBA4444 for textures with alpha set to ETC compressionclayjohn2020-01-021-16/+16
| | | | |
* | | | | Merge pull request #34726 from nekomatata/polygon2d-antialiasing-fixRémi Verschelde2020-01-031-0/+9
|\ \ \ \ \ | |_|/ / / |/| | | | Fixed antialiasing option for Polygon2D with concave/hollow shapes
| * | | | Fixed antialiasing option for Polygon2DPouleyKetchoupp2020-01-011-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some cases were not handled properly for Polygon2D after making changes in common code to fix Line2D antialiasing. Added an option for drawing polygons to differentiate the two use cases. Fixes #34568
* | | | | Merge pull request #34688 from sheepandshepherd/gdnative_class_ptrRémi Verschelde2020-01-031-0/+4
|\ \ \ \ \ | |_|/ / / |/| | | | Expose is_class_ptr to GDNative for dynamic casts
| * | | | Expose cast_to to GDNative for dynamic castssheepandshepherd2020-01-031-0/+4
| | | | |
* | | | | Merge pull request #34476 from volzhs/no-slash-localize_pathRémi Verschelde2020-01-021-0/+4
|\ \ \ \ \ | | | | | | | | | | | | Make sure no additional slash being added with localize_path
| * | | | | Make sure no additional slash being added with localize_pathvolzhs2019-12-201-0/+4
| | | | | |
* | | | | | Merge pull request #34618 from qarmin/vector_please_dont_crashRémi Verschelde2020-01-021-5/+5
|\ \ \ \ \ \ | | | | | | | | | | | | | | Don't use constant reference in Vector push_back, insert and append_array
| * | | | | | Don't use constant reference in Vector push_back, insert and append_arrayRafał Mikrut2019-12-261-5/+5
| | | | | | |
* | | | | | | Merge pull request #34745 from timothyqiu/vararg-return-nil-34743Rémi Verschelde2020-01-024-10/+12
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Allows to doc vararg method return type as void
| * | | | | | | Allows to doc vararg method return type as voidHaoyu Qiu2020-01-024-10/+12
| | |_|/ / / / | |/| | | | |
* / | | | | | Object::disconnect: Better errors when no signal or lockedRémi Verschelde2020-01-021-2/+4
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It will now give information about the originating object instance and when locked, the target callback. This should help debugging editor and game issues that are now being reported due to adding signal locking in 22637beb2ed625c3e43ab75ab5865b57d7470948.
* | | / / / Update copyright statements to 2020Rémi Verschelde2020-01-01260-520/+520
| |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
* | | | | Merge pull request #34682 from Calinou/os-exit-code-nonportable-warningRémi Verschelde2019-12-301-0/+4
|\ \ \ \ \ | | | | | | | | | | | | Print a warning message if `OS.exit_code` is set to a non-portable value
| * | | | | Print a warning message if `OS.exit_code` is set to a non-portable valueHugo Locurcio2019-12-291-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | This also improves the related documentation.
* | | | | | Add ord() function to Expression classDanil Alexeev2019-12-292-0/+29
|/ / / / / | | | | | | | | | | | | | | | | | | | | The ord() function was recently added in GDScript and VisualScript, but was missed in the Expression class.
* / / / / Fix buffers size calculation in PacketPeerStream.Fabio Alessandrelli2019-12-221-1/+1
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The calculation used to be wrong when exactly at a power of 2. `nearest_shift` always return the "next" power of 2 `nearest_shift(4) == 3 # 2^3 = 8`. On the other hand `next_power_of_2` returns the exact value if that value is a power of 2 (i.e. `next_power_of_2(4) == 4`). I.e. : ``` WARN_PRINT(itos(next_power_of_2(4)) + " " + itos(1 << nearest_shift(4))); // WARNING: ... : 4 8 ``` Is this by design?
* / / / Encodes property names properly in project.godotHaoyu Qiu2019-12-204-7/+16
|/ / /
* | | Merge pull request #34421 from Chaosus/fix_strcpy_warningRémi Verschelde2019-12-191-0/+4
|\ \ \ | | | | | | | | Fix build warning in ustring.cpp on Windows/MSVC platform
| * | | Fix build warning in ustring.cpp on Windows/MSVC platformYuri Roubinsky2019-12-181-0/+4
| | | |
* | | | Suggest use of deferred or oneshot on disconnect if the signal is locked. ↵Juan Linietsky2019-12-181-1/+1
|/ / / | | | | | | | | | Closes #34443.
* | | Merge pull request #34348 from Catchawink/masterRémi Verschelde2019-12-171-1/+2
|\ \ \ | | | | | | | | Fixed issues with using a relative path in the export window.
| * | | Fixed issues with using a relative path in the export window.Catchawink2019-12-161-1/+2
| | | | | | | | | | | | | | | | Before this fix, opening relative export paths inside of an EditorFileDialog was not possible. This was fixed by modifying String::path_to_file() to save relative paths in EditorExportPreset::set_export_path() more appropriately and changing EditorFileDialog::set_current_dir() to open relative paths.
* | | | Improve error message and do not spam forever.Juan Linietsky2019-12-171-1/+4
| | | |
* | | | Restore signal locking, for some reason missing.Juan Linietsky2019-12-171-0/+2
| | | |
* | | | Document that translated does not behave like rotated or scaledAaron Franke2019-12-151-1/+1
| | | |
* | | | Merge pull request #33910 from Faless/net/android_mlockRémi Verschelde2019-12-143-1/+14
|\ \ \ \ | |/ / / |/| | | Acquire MulticastLock on Android when using broadcast/multicast
| * | | UDP sockets broadcast is now disabled by default.Fabio Alessandrelli2019-12-142-0/+13
| | | | | | | | | | | | | | | | | | | | Add method `set_broadcast_enabled` to allow enabling broadcast via GDScript.
| * | | NetSocket set_broadcast_enabled returns Error enumFabio Alessandrelli2019-12-101-1/+1
| | | |
* | | | Drop b2d_convexdecomp. no longer necessary.Rémi Verschelde2019-12-132-11/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We now use `thirdparty/misc/triangulator.h` for all physics-related (collision, navigation) triangulation needs. Follow-up to #34293.
* | | | Merge pull request #34310 from qarmin/shift_operatorsRémi Verschelde2019-12-131-0/+4
|\ \ \ \ | |_|_|/ |/| | | Don't allow to use too big or too small shift count
| * | | Don't allow to use too big or too small shift operatorsRafał Mikrut2019-12-121-0/+4
| | | |
* | | | Merge pull request #27792 from Giacom/fix_quatRémi Verschelde2019-12-111-25/+24
|\ \ \ \ | |_|/ / |/| | | Fixes being unable to use the Quat(Vector3) constructor
| * | | Fixes being unable to use the Quat(Vector3) constructorGiacom2019-04-081-25/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Quat(Vector3) constructor, to initialise a Quat by a euler angle, was impossible because Variant::construct would only check for constructors with greater than 1 arguments. I changed it to greater than or equal to 1 and moved it to the bottom of the priority list so it did not overshadow the other checks that checked for arguments equal to 1 for simple copy constructors.
* | | | Merge pull request #34040 from qarmin/unused_variable_more_precise_numbersRémi Verschelde2019-12-104-12/+9
|\ \ \ \ | | | | | | | | | | Removed unused variables, add some constants numbers
| * | | | Removed unused variables, add some constants numbersRafał Mikrut2019-12-104-12/+9
| | | | |
* | | | | Make some arguments in PCKPacker methods optionalHugo Locurcio2019-12-072-3/+3
| |_|/ / |/| | | | | | | | | | | | | | | Those arguments aren't required for most common use cases, so making them optional should help with code readability.
* | | | ResourceLoader: Add language code matching for localized resourcesRémi Verschelde2019-12-042-15/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Near matching was not implemented like in TranslationServer, so a resource remapped for 'ru' (but not 'ru_RU') would not be used as fallback if the system locale was 'ru_RU'. Fixes #34058.