summaryrefslogtreecommitdiffstats
path: root/core
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #35092 from AndreaCatania/frames_expRémi Verschelde2020-01-142-0/+14
|\ | | | | Exposed physics frame count and idle frame count
| * Exposed physics frame count and idle frame countAndrea Catania2020-01-132-0/+14
| |
* | Object: Avoid error on emit_signal with freed targetRémi Verschelde2020-01-131-7/+5
| | | | | | | | As advised by @reduz.
* | Object: Remove error on disconnect of locked signalsRémi Verschelde2020-01-131-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | According to https://github.com/godotengine/godot/commit/22637beb2ed625c3e43ab75ab5865b57d7470948#commitcomment-36651823 and as confirmed by @reduz, this seems not to be necessary now that we copy-on-write. This triggered freeze scenarios in cases where a node would be deleted while being used as a target in a signal emission. Fixes #34650. Fixes #34769. Now those two errors go back to reporting: ``` ERROR: emit_signal: Condition ' !target ' is true. Continuing..: At: core/object.cpp:1191. ```
* | Revert "Enable Vsync via Compositor by default"Rémi Verschelde2020-01-131-1/+1
|/ | | | | | | | This reverts commit 9600fd5dde1f85b7dd2dd8558d52ff86b18651e7. Add comment warning about possible implications of using this option. Fixes #35038.
* [macOS] Load PCK from the .app bundle resources, instead of changing working ↵bruvzg2020-01-103-1/+16
| | | | directory.
* Merge pull request #34968 from Calinou/enable-vsync-via-compositorRémi Verschelde2020-01-101-1/+1
|\ | | | | Enable Vsync via Compositor by default
| * Enable Vsync via Compositor by defaultHugo Locurcio2020-01-091-1/+1
| | | | | | | | | | | | This feature was added in #33414 but it was disabled by default. Now that it got some testing, it's probably safe to enable it by default.
* | GDScript: Validate object instance on `is` operationGeorge Marques2020-01-091-0/+12
|/ | | | | | | | Avoids crashes on debug mode. Instead it now breaks the execution and show the error in-editor. Will still crash on release. Also add a similar check to Marshalls to ensure the debugger doesn't crash when trying to serialize the invalid instance.
* 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
| | | |