summaryrefslogtreecommitdiff
path: root/core
AgeCommit message (Collapse)Author
2020-03-01Merge pull request #36404 from rxlecky/fix-variant-conversionRémi Verschelde
Fix Variant to Vector<Variant> conversion operator
2020-03-01Merge pull request #36696 from Chaosus/fix_echoRémi Verschelde
Fix InputEventKey::echo property type from INT to BOOL
2020-03-01Merge pull request #36695 from clayjohn/ETC-mipmaps-4Rémi Verschelde
Force mipmaps off when importing RGBA4444 textures
2020-03-01Fix InputEventKey::echo type from INT to BOOLYuri Roubinsky
2020-02-29Force mipmaps off when importing RGBA4444 texturesclayjohn
2020-02-29doc: Sync classref with current sourceRémi Verschelde
2020-02-28Merge pull request #36640 from reduz/resource-loader-refactorRémi Verschelde
Removed ResourceInteractiveLoader, add built-in threaded loading.
2020-02-28Removed interactive loader, added proper thread loading.Juan Linietsky
2020-02-28ConnectionsDock: Fix error when parsing CustomCallable connectionsRémi Verschelde
2020-02-28Signals: Port connect calls to use callable_mpRémi Verschelde
Remove now unnecessary bindings of signal callbacks in the public API. There might be some false positives that need rebinding if they were meant to be public. No regular expressions were harmed in the making of this commit. (Nah, just kidding.)
2020-02-28Fix shadowed variable build errorPedro J. Estébanez
2020-02-28Merge pull request #36556 from RandomShaper/rework_mutexRémi Verschelde
Reimplement `Mutex` with C++'s `<mutex>` (plus more)
2020-02-27Merge pull request #36579 from dreamsComeTrue/remove-refbase-referenceRémi Verschelde
Remove friend reference to non-existing class RefBase
2020-02-27Optimized rpc packet size when only the `PackedByteArray` is sent.Andrea Catania
This work has been kindly sponsored by IMVU.
2020-02-26Remove friend reference to non-existing class RefBaseDominik 'dreamsComeTrue' Jasiński
Commit 7ad14e7a3e6f87ddc450f7e34621eb5200808451 removed RefBase class - but still there is hanging reference in....Reference :) class (no pun intended)
2020-02-26Reimplement Mutex with C++'s <mutex>Pedro J. Estébanez
Main: - It's now implemented thanks to `<mutex>`. No more platform-specific implementations. - `BinaryMutex` (non-recursive) is added, as an alternative for special cases. - Doesn't need allocation/deallocation anymore. It can live in the stack and be part of other classes. - Because of that, it's methods are now `const` and the inner mutex is `mutable` so it can be easily used in `const` contexts. - A no-op implementation is provided if `NO_THREADS` is defined. No more need to add `#ifdef NO_THREADS` just for this. - `MutexLock` now takes a reference. At this point the cases of null `Mutex`es are rare. If you ever need that, just don't use `MutexLock`. - Thread-safe utilities are therefore simpler now. Misc.: - `ScopedMutexLock` is dropped and replaced by `MutexLock`, because they were pretty much the same. - Every case of lock, do-something, unlock is replaced by `MutexLock` (complex cases where it's not straightfoward are kept as as explicit lock and unlock). - `ShaderRD` contained an `std::mutex`, which has been replaced by `Mutex`.
2020-02-25Update docs and bindings for new integer vector typesRémi Verschelde
2020-02-25Merge pull request #36515 from reduz/packed-array-64-bitsRémi Verschelde
Variant: Added 64-bit packed arrays, renamed Variant::REAL to FLOAT.
2020-02-25Merge pull request #36529 from akien-mga/expression-int64Rémi Verschelde
Expression: Fix parsing integers as 32-bit
2020-02-25Merge pull request #36481 from nekomatata/fix-crash-connect-callableRémi Verschelde
Fixed crash when connecting a signal in GDScript
2020-02-25Expression: Fix parsing integers as 32-bitRémi Verschelde
2020-02-25Variant: Added 64-bit packed arrays, renamed Variant::REAL to FLOAT.Juan Linietsky
- Renames PackedIntArray to PackedInt32Array. - Renames PackedFloatArray to PackedFloat32Array. - Adds PackedInt64Array and PackedFloat64Array. - Renames Variant::REAL to Variant::FLOAT for consistency. Packed arrays are for storing large amount of data and creating stuff like meshes, buffers. textures, etc. Forcing them to be 64 is a huge waste of memory. That said, many users requested the ability to have 64 bits packed arrays for their games, so this is just an optional added type. For Variant, the float datatype is always 64 bits, and exposed as `float`. We still have `real_t` which is the datatype that can change from 32 to 64 bits depending on a compile flag (not entirely working right now, but that's the idea). It affects math related datatypes and code only. Neither Variant nor PackedArray make use of real_t, which is only intended for math precision, so the term is removed from there to keep only float.
2020-02-24Fix project.godot for projects with class_namenathanwfranke
Fixes #36438
2020-02-24Core: Change _Marshall class inherit from Reference to ObjectMateo Dev .59
2020-02-23callable_mp: Fix non-debug branchRémi Verschelde
Was missed in #36393 because no `callable_mp()` calls were actually compiled with `tools=no` in that PR. Also work around GCC warning that also affects the `call_with_variant_args_ret_helper` variant.
2020-02-23Store arrays inside of Variant as shared.Juan Linietsky
Arrays inside of Variant are unique and use reference counting. When you assign a variant containing a packed array to another, or when you call non const functions to arrays, this will work even if the array is inside a dictionary, so they will from now pass as reference. The difference with regular variant arrays is that, once passed to a function in the C++ API, they are no longer shared. This is required for security and thread safety, as those arrays are mainly used to pass data back and forth even between threads.
2020-02-23Fixed crash when connecting a signal in GDScriptPouleyKetchoupp
2020-02-23Merge pull request #36461 from akien-mga/c++17-fallthrough-attributeRémi Verschelde
Replace FALLTHROUGH macro by C++17 [[fallthrough]]
2020-02-23Replace FALLTHROUGH macro by C++17 [[fallthrough]]Rémi Verschelde
This attribute is now part of the standard we target so we no longer need compiler-specific hacks. Also enables -Wimplicit-fallthrough for Clang now that we can properly support it. It's already on by default for GCC's -Wextra. Fixes new warnings raised by Clang's -Wimplicit-fallthrough.
2020-02-22Add support for Vector2i, Rect2i and Vector3i to VariantJuan Linietsky
WARNING: Requires C++17 'guaranteed copy elision' to fix ambiguous operator problems in Variant. This was added for this commit (and future C++17 uses) in #36457.
2020-02-21Fix Variant to Vector<Variant> conversion operatorSeleckyErik
2020-02-21Merge pull request #36400 from reduz/variant-string-nameRémi Verschelde
Added StringName as a variant type.
2020-02-21Added StringName as a variant type.Juan Linietsky
Also changed all relevant properties defined manually to StringName.
2020-02-21Created the callable_mp macro, for signals to call method pointers directly.Juan Linietsky
2020-02-21Huge Debugger/EditorDebugger refactor.Fabio Alessandrelli
2020-02-20Reworked signal connection system, added support for Callable and Signal ↵Juan Linietsky
objects and made them default.
2020-02-19Fix two signal errorsnathanwfranke
Update
2020-02-19Merge pull request #36359 from vnen/variant-reference-fixRémi Verschelde
Fix Ref(Variant) constructor to properly check the object type
2020-02-19Fix Ref(Variant) constructor to properly check the object typeGeorge Marques
Otherwise it was saving any reference as valid, regardless of type.
2020-02-19Revert "ClassDB: Workaround double-free for GDScript"George Marques
This reverts commit 8312ead0d99cfc308f2f7635bae3da6bf0ff5489.
2020-02-18Merge pull request #36296 from Faless/dtls/enet_vulkanRémi Verschelde
DTLS support + optional ENet encryption
2020-02-18PoolVector is gone, replaced by VectorJuan Linietsky
Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are sugar for `Vector<Type>`.
2020-02-17New PacketPeerDTLS and DTLSServer classes.Fabio Alessandrelli
Custom instance implementation via the mbedtls module.
2020-02-17ClassDB: Workaround double-free for GDScriptRémi Verschelde
This is a temporary hack until vnen and reduz can work on a proper fix. The changes in 867d073b98344b848c96012418912a7e72841a31 exposed a GDScript issue, which apparently triggers an automatic unreferencing. This hack only makes it possible to use the editor again, but GDScript is still broken.
2020-02-16UDPServer and PacketPeerUDP connect_to_host.Fabio Alessandrelli
UDP sockets can be "connected" to filter packets from a specific source. In case of a bound socket (e.g. server), a new socket can be created on the same address/port that will receive all packets that are not filtered by a more specific socket (e.g. the previously connect socket). This way, a UDPServer can listen to new packets, and return a new PacketPeerUDP when receiving one, knowing that is a "new client".
2020-02-16Add peek option to NetSocket recv_from.Fabio Alessandrelli
2020-02-15Changed logic and optimized ObjectID in ObjectDB and Variant, removed RefPtr.Juan Linietsky
2020-02-14Remove incomplete battery status/power APIRémi Verschelde
It was initially implemented in #5871 for Godot 3.0, but never really completed or thoroughly tested for most platforms. It then stayed in limbo and nobody seems really keen to finish it, so it's better to remove it in 4.0, and re-add eventually (possibly with a different API) if there's demand and an implementation confirmed working on all platforms. Closes #8770.
2020-02-13Remove more deprecated methods and codeRémi Verschelde
2020-02-13Merge pull request #36169 from timothyqiu/memleakRémi Verschelde
Fixes some memory leaks