summaryrefslogtreecommitdiff
path: root/core
AgeCommit message (Collapse)Author
2020-01-06Merge pull request #34020 from gytsen/unify-pack-versionRémi Verschelde
PCK: Set VERSION_PATCH in header, factor out header magic
2020-01-06Merge pull request #34296 from timothyqiu/lock-33072Rémi Verschelde
Fixes crash when using Resource::_take_over_path
2020-01-06PCK: Set VERSION_PATCH in header, factor out header magicJoost Heitbrink
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>
2020-01-06Merge pull request #33967 from Calinou/add-os-is-window-focusedRémi Verschelde
Add an `OS.is_window_focused()` getter
2020-01-03Merge pull request #34782 from akien-mga/multiplayerapi-set_network_peer-invalidRémi Verschelde
MultiplayerAPI: Fix disconnect errors when passing invalid peer
2020-01-03Merge pull request #34772 from clayjohn/ETC-support-alphaRémi Verschelde
Fallback to RGBA4444 for textures with alpha set to ETC compression
2020-01-03Merge pull request #34726 from nekomatata/polygon2d-antialiasing-fixRémi Verschelde
Fixed antialiasing option for Polygon2D with concave/hollow shapes
2020-01-03MultiplayerAPI: Fix disconnect errors when passing invalid peerRémi Verschelde
Fixes #34634.
2020-01-03Merge pull request #34688 from sheepandshepherd/gdnative_class_ptrRémi Verschelde
Expose is_class_ptr to GDNative for dynamic casts
2020-01-02Fallback to RGBA4444 for textures with alpha set to ETC compressionclayjohn
2020-01-03Expose cast_to to GDNative for dynamic castssheepandshepherd
2020-01-02Merge pull request #34476 from volzhs/no-slash-localize_pathRémi Verschelde
Make sure no additional slash being added with localize_path
2020-01-02Merge pull request #34618 from qarmin/vector_please_dont_crashRémi Verschelde
Don't use constant reference in Vector push_back, insert and append_array
2020-01-02Merge pull request #34745 from timothyqiu/vararg-return-nil-34743Rémi Verschelde
Allows to doc vararg method return type as void
2020-01-02Object::disconnect: Better errors when no signal or lockedRémi Verschelde
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.
2020-01-02Allows to doc vararg method return type as voidHaoyu Qiu
2020-01-01Fixed antialiasing option for Polygon2DPouleyKetchoupp
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
2020-01-01Update copyright statements to 2020Rémi Verschelde
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.
2019-12-30Merge pull request #34682 from Calinou/os-exit-code-nonportable-warningRémi Verschelde
Print a warning message if `OS.exit_code` is set to a non-portable value
2019-12-29Print a warning message if `OS.exit_code` is set to a non-portable valueHugo Locurcio
This also improves the related documentation.
2019-12-29Add ord() function to Expression classDanil Alexeev
The ord() function was recently added in GDScript and VisualScript, but was missed in the Expression class.
2019-12-26Don't use constant reference in Vector push_back, insert and append_arrayRafał Mikrut
2019-12-22Fix buffers size calculation in PacketPeerStream.Fabio Alessandrelli
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?
2019-12-20Make sure no additional slash being added with localize_pathvolzhs
2019-12-20Encodes property names properly in project.godotHaoyu Qiu
2019-12-19Merge pull request #34421 from Chaosus/fix_strcpy_warningRémi Verschelde
Fix build warning in ustring.cpp on Windows/MSVC platform
2019-12-18Suggest use of deferred or oneshot on disconnect if the signal is locked. ↵Juan Linietsky
Closes #34443.
2019-12-18Fix build warning in ustring.cpp on Windows/MSVC platformYuri Roubinsky
2019-12-17Merge pull request #34348 from Catchawink/masterRémi Verschelde
Fixed issues with using a relative path in the export window.
2019-12-17Improve error message and do not spam forever.Juan Linietsky
2019-12-17Restore signal locking, for some reason missing.Juan Linietsky
2019-12-16Fixed issues with using a relative path in the export window.Catchawink
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.
2019-12-15Document that translated does not behave like rotated or scaledAaron Franke
2019-12-14Merge pull request #33910 from Faless/net/android_mlockRémi Verschelde
Acquire MulticastLock on Android when using broadcast/multicast
2019-12-14UDP sockets broadcast is now disabled by default.Fabio Alessandrelli
Add method `set_broadcast_enabled` to allow enabling broadcast via GDScript.
2019-12-13Drop b2d_convexdecomp. no longer necessary.Rémi Verschelde
We now use `thirdparty/misc/triangulator.h` for all physics-related (collision, navigation) triangulation needs. Follow-up to #34293.
2019-12-13Merge pull request #34310 from qarmin/shift_operatorsRémi Verschelde
Don't allow to use too big or too small shift count
2019-12-12Don't allow to use too big or too small shift operatorsRafał Mikrut
2019-12-12Fixes crash when using Resource::_take_over_pathHaoyu Qiu
2019-12-11Merge pull request #27792 from Giacom/fix_quatRémi Verschelde
Fixes being unable to use the Quat(Vector3) constructor
2019-12-10NetSocket set_broadcast_enabled returns Error enumFabio Alessandrelli
2019-12-10Merge pull request #34040 from qarmin/unused_variable_more_precise_numbersRémi Verschelde
Removed unused variables, add some constants numbers
2019-12-10Removed unused variables, add some constants numbersRafał Mikrut
2019-12-07Make some arguments in PCKPacker methods optionalHugo Locurcio
Those arguments aren't required for most common use cases, so making them optional should help with code readability.
2019-12-04ResourceLoader: Add language code matching for localized resourcesRémi Verschelde
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.
2019-12-04Translation: Refactor locale matching to use proper language codeRémi Verschelde
The previous code only parsed the first two characters (potentially reading out of bounds if input was invalid), but some locales use a 3-letter language code (e.g. 'nah_MX'). So I refactored the logic a bit to properly parse the locale and extract the part left of the regional code, if provided (supports both 'en_US' and 'en-US' style). I made TranslationServer::get_language_code() public as I'll use it in a follow up commit.
2019-12-04Added support for vertical syncing via the Windows OS compositor (DWM.)TerminalJack
2019-12-03Fix severe performance drop while deflating polylinesAndrii Doroshenko (Xrayez)
Underscaled arc tolerance produced very small values so that changes to this parameter were negligible when scaled internally, hence significant performance drop (lots of intermediate points inserted in an arc). Now the performance is mostly the same compared to other types of offsetting (SQUARE, MITER).
2019-12-03Merge pull request #34072 from arlez80/masterRémi Verschelde
fixed pitch bend value and MIDI running status on the InputEventMIDI.
2019-12-03fixed set pitch bend value and implemented midi running statusあるる / きのもと 結衣