summaryrefslogtreecommitdiffstats
path: root/core
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* | | Translation: Refactor locale matching to use proper language codeRémi Verschelde2019-12-042-33/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Added support for vertical syncing via the Windows OS compositor (DWM.)TerminalJack2019-12-044-1/+34
| | |
* | | Fix severe performance drop while deflating polylinesAndrii Doroshenko (Xrayez)2019-12-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | 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).
* | | Merge pull request #34072 from arlez80/masterRémi Verschelde2019-12-032-16/+33
|\ \ \ | | | | | | | | fixed pitch bend value and MIDI running status on the InputEventMIDI.
| * | | fixed set pitch bend value and implemented midi running statusあるる / きのもと 結衣2019-12-032-16/+33
| |/ /
* | | Merge pull request #33857 from nekomatata/polygon-2d-antialiasingRémi Verschelde2019-12-031-0/+9
|\ \ \ | |/ / |/| | Fixed antialiased option for Polygon2D
| * | Fixed antialiased option for Polygon2D / Line2DPouleyKetchoupp2019-11-281-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Polygon2D: The property wasn't used anymore after switching from canvas_item_add_polygon() to canvas_item_add_triangle_array() for drawing. Line2D: Added the same property as for Polygon2D & fixed smooth line drawing to use indices correctly. Fixes #26823
* | | Merge pull request #33640 from mewin/http_head_requestFabio Alessandrelli2019-12-012-0/+11
|\ \ \ | | | | | | | | Fix HTTP HEAD requests
| * | | do not wait for response body when making a HEAD requestPatrick Wuttke2019-11-262-0/+11
| | | |
* | | | Revert "Fix localise_path method so that uncached scripts don't sometimes ↵Emmanuel Leblond2019-11-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | get loaded with two backslashes" This reverts commit 1342551664091c1ceb931ee45d9c43f09df5f1ff.
* | | | Merge pull request #33862 from Faless/net/http_request_chunk_sizeRémi Verschelde2019-11-252-0/+7
|\ \ \ \ | |_|/ / |/| | | Add download_chunk_size property to HTTPRequest.
| * | | Add download_chunk_size property to HTTPRequest.Fabio Alessandrelli2019-11-242-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | This allows setting the `read_chunk_size` of the internal HTTPClient. This is important to reduce the allocation overhead and number of file writes when downloading large files, allowing for better download speed.
* | | | Merge pull request #33652 from Black-Cat/http-client-fixFabio Alessandrelli2019-11-231-0/+2
|\ \ \ \ | |/ / / |/| | | Fix HTTPClient::poll crash when connection set to null
| * | | Fix HTTPClient::poll crash when connection set to nullArtem Burjachenko2019-11-231-0/+2
| |/ /
* | | Merge pull request #33583 from qarmin/fix_overflows_unitializedRémi Verschelde2019-11-205-1/+11
|\ \ \ | | | | | | | | Fix some overflows and unitialized variables