summaryrefslogtreecommitdiffstats
path: root/core
Commit message (Collapse)AuthorAgeFilesLines
* doc: Document named color constantsRémi Verschelde2020-01-261-1/+1
| | | | Busywork but it's good for our completion rate :)
* Add explanations for errors related to Vector/Quat normalizationHugo Locurcio2020-01-246-16/+16
|
* Merge pull request #35438 from MadEqua/virtual-keyboard-line-editRémi Verschelde2020-01-232-2/+2
|\ | | | | Android virtual keyboard respecting LineEdit max length.
| * Android virtual keyboard respecting LineEdit max length.Bruno Lourenço2020-01-232-2/+2
| |
* | Make `OS.execute()` blocking by default if not specifiedHugo Locurcio2020-01-233-3/+3
| | | | | | | | | | This makes `OS.execute()` calls quicker to set up when calling programs in a blocking fashion.
* | Merge pull request #35414 from Ovnuniarchos/AlsaMidiBadPitchBendRémi Verschelde2020-01-221-1/+6
|\ \ | | | | | | ALSA MIDI: Pitch bend and System Common messages
| * | ALSA MIDI driver:Ovnuniarchos2020-01-221-1/+6
| | | | | | | | | | | | | | | Pith bend message now has correct size (was 2 bytes instead of 3). Recognized (but not implemented) 0xF? messages. SysEx messages will be reocognized as such, but their contents will be ignored.
* | | Merge pull request #35406 from lawnjelly/ortho-shadowRémi Verschelde2020-01-222-7/+5
|\ \ \ | |_|/ |/| | Replace CameraMatrix::get_viewport_size with get_viewport_half_extents, shadow culling with ortho camera and other affected issues
| * | Change CameraMatrix::get_viewport_size to get_viewport_half_extentslawnjelly2020-01-222-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #26637. Fixes #19900. The viewport_size returned by get_viewport_size was previously incorrect, being half the correct value. The function is renamed to get_viewport_half_extents, and now returns a Vector2. Code which called this function has also been modified accordingly. This PR also fixes shadow culling when using ortho cameras, because the correct input for CameraMatrix::set_orthogonal should be the full HEIGHT from get_viewport_half_extents, and not half the width. It also fixes state.ubo_data.viewport_size in rasterizer_scene_gles3.cpp to be the width and the height of the viewport in pixels as stated in the documentation, rather than the current value which is half the viewport extents in worldspace, presumed to be a bug.
* | | Merge pull request #35423 from Faless/fix/object_emit_freeRémi Verschelde2020-01-222-9/+10
|\ \ \ | | | | | | | | Make sure we know when deleting an emitting object
| * | | Make sure we know when deleting an emitting objectFabio Alessandrelli2020-01-222-9/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We used a lock signals in the signal_map while emitting, because it was not allowed to disconnect them while being emitted. We used that lock to check if we where deleting an object during signal emission. Now that we allow to disconnect signals while they are being emitted, if an object first disconnects, then gets deleted we can't know that a signal was being emitted during the destructor. This commit adds a new `_emitting` boolean member to Object to be set while emitting and checked in the destructor, while removing the old signal lock which is now unused.
* | | | Thread: Fix typo in destructor error messageRémi Verschelde2020-01-221-1/+2
| | | |
* | | | Fixes leak when importing zip in AssetLibHaoyu Qiu2020-01-221-0/+1
|/ / /
* | | Merge pull request #35408 from Faless/ws/fix_packet_countRémi Verschelde2020-01-211-0/+1
|\ \ \ | | | | | | | | Fix MultiplayerAPI crash when peer implementation misbehave.
| * | | Fix MultiplayerAPI crash when peer impl misbehave.Fabio Alessandrelli2020-01-211-0/+1
| | | | | | | | | | | | | | | | | | | | Also fix WebSocketMultiplayer::get_available_packet_count() return value when peer is not configured to use the multiplayer API.
* | | | Fix AtlasPacker ignoring semi-transparent pixelsEric Rybicki2020-01-201-2/+1
| |/ / |/| | | | | | | | Fixes #33106
* | | Merge pull request #35345 from timothyqiu/pck-packer-leakRémi Verschelde2020-01-201-0/+4
|\ \ \ | | | | | | | | Fixes leak when calling PCKPacker::pck_start multiple times
| * | | Fixes leak when pck_start multiple timesHaoyu Qiu2020-01-201-0/+4
| | |/ | |/|
* / | Fixes XMLParser leak when open multiple timesHaoyu Qiu2020-01-201-0/+8
|/ /
* / PacketPeer use heap buffer for var encoding.Fabio Alessandrelli2020-01-192-5/+34
|/ | | | | | | Used to allocate in stack (via alloca) which causes crashes when trying to encode big variables. The buffer grows as needed up to `encode_buffer_max_size` (which is 8MiB by default) and always in power of 2.
* 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
| | | | | | |