summaryrefslogtreecommitdiffstats
path: root/core/object
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #49318 from reduz/native-extensionRémi Verschelde2021-06-075-5/+197
|\ | | | | Add API for registering native extensions
| * Add API for registering native extensionsreduz2021-06-045-5/+197
| | | | | | | | | | * First step for GDNative to behave more like modules * Only Object and ClassDB, the rest needs to happen on the GDNative side.
* | Merge pull request #49221 from Faless/mp/4.x_rpc_refactorRémi Verschelde2021-06-072-56/+3
|\ \ | |/ |/| [Net] Refactor RPCs, remove RSETs
| * [Net] Refactor RPCs, remove RSETsFabio Alessandrelli2021-06-012-56/+3
| | | | | | | | | | | | | | | | | | | | In this PR: - Removed rset - rpc_config can now optionally configure transfer mode (reliable/unreliable/ordered) and channel (channels are not actually implemented yet.) - Refactor how the RPC id is computed to minimize the logic in Node and scripts that now only needs a single `get_rpc_methods` function.
* | Move and expose AutoComplete in CodeEditPaulb232021-06-011-0/+2
|/
* Fix typos with codespellRémi Verschelde2021-05-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using codespell 2.0.0. Method: ``` $ cat > ../godot-word-whitelist.txt << EOF ang curvelinear dof doubleclick fave findn GIRD leapyear lod merchantibility nd numer ois ony que seeked synching te uint unselect webp EOF $ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po" $ git diff // undo unwanted changes ```
* Highlight control flow keywords with a different colorHugo Locurcio2021-05-051-0/+1
| | | | This makes them easier to distinguish from other keywords.
* Core: Drop custom `copymem`/`zeromem` definesRémi Verschelde2021-04-271-4/+3
| | | | | | | | We've been using standard C library functions `memcpy`/`memset` for these since 2016 with 67f65f66391327b2967a20a89c3627e1dd6e84eb. There was still the possibility for third-party platform ports to override the definitions with a custom header, but this doesn't seem useful anymore.
* fix crash on null class in ClassDB.get_property() and set_property()jmb4622021-04-021-0/+4
|
* Merge pull request #46378 from reduz/static-method-in-variant-typesRémi Verschelde2021-03-161-0/+1
|\ | | | | Add static method support to core Variant types
| * Add static method support to core Variant typesreduz2021-03-161-0/+1
| | | | | | | | | | | | * Properly exposed, including validated and variant call * Bound static functions in String and Color * Did not add support for scripting languages, will have to be added manually.
* | Fixes small typos and grammar correctionAnshul7sp12021-03-121-4/+4
| |
* | Implement Navigation layersGilles Roudière2021-03-101-0/+2
|/
* doc: Sync classref with current sourceRémi Verschelde2021-02-191-1/+1
| | | | And fix various bogus bindings following previous PRs.
* Merge pull request #45617 from RandomShaper/modernize_atomicsRémi Verschelde2021-02-183-4/+5
|\ | | | | Modernize atomics (and fix `volatile`)
| * Modernize atomicsPedro J. Estébanez2021-02-183-4/+5
| | | | | | | | | | | | | | | | | | | | - Based on C++11's `atomic` - Reworked `SafeRefCount` (based on the rewrite by @hpvb) - Replaced free atomic functions by the new `SafeNumeric<T>` - Replaced wrong cases of `volatile bool` by the new `SafeFlag` - Platform-specific implementations no longer needed Co-authored-by: Hein-Pieter van Braam-Stewart <hp@tmm.cx>
* | Reorganize Project Settingsreduz2021-02-181-0/+1
|/ | | | | | | -Advanced Settings toggle also hides advanced properties when disabled -Simplified Advanced Bar (errors were just plain redundant) -Reorganized rendering quality settings. -Reorganized miscelaneous settings for clean up.
* Don't save project settings when not necessarykobewi2021-02-131-0/+8
|
* Removed _change_notifyreduz2021-02-103-36/+10
| | | | | | -For inspector refresh, the inspector now detects if a property change by polling a few times per second and then does update the control if so. This process is very cheap. -For property list refresh, a new signal (property_list_changed) was added to Object. _change_notify() is replaced by notify_property_list_changed() -Changed all objects using the old method to the signal, or just deleted the calls to _change_notify(<property>) since they are unnecesary now.
* Modernize RWLockPedro J. Estébanez2021-01-192-11/+4
| | | | | | | | - Based on C++14's `shared_time_mutex` - No more need to allocate-deallocate or check for null - No pointer anymore, just a member variable - Platform-specific implementations no longer needed - Simpler for `NO_THREADS`
* Improve UndoRedo classGilles Roudière2021-01-122-17/+52
|
* Merge pull request #44848 from mrushyendra/disconnect_err_msgRémi Verschelde2021-01-011-1/+6
|\ | | | | Issue correct error when disconnecting nonexistent connection with a valid signal
| * Issue more precise error when disconnecting a nonexistent connectionMaganty Rushyendra2021-01-011-1/+6
| | | | | | | | | | Checks whether the signal exists when issuing an error message when disconnecting a nonexistent connection. Also prints the callable name.
* | Update copyright statements to 2021Rémi Verschelde2021-01-0117-34/+34
|/ | | | | | | | | | | | | | Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
* Rename empty() to is_empty()Marcel Admiraal2020-12-283-8/+8
|
* Merge pull request #43196 from Xrayez/property-list-changed-notify-protectedRémi Verschelde2020-12-201-2/+1
|\ | | | | Make `property_list_changed_notify()` protected in `Object`
| * Make `property_list_changed_notify` protected in `Object`Andrii Doroshenko (Xrayez)2020-12-101-2/+1
| | | | | | | | | | | | | | Alternative to `_change_notify()` to be called from within C++ classes. Achieves low-level consistency with scripting, where this method is exposed for updating the editor (inspector) with new values.
* | Add animation reset track featurePedro J. Estébanez2020-12-201-1/+1
| | | | | | | | As a bonus, to have consistency between use Beziers and create insert tracks, use Beziers also gets a default via editor settings that is used when the confirmation dialog is disabled, instead of just falling back to creating non-Bezier tracks.
* | Extend UndoRedo handling of Resource to every ReferencePedro J. Estébanez2020-12-202-14/+15
|/
* Merge pull request #44128 from KoBeWi/🧹Rémi Verschelde2020-12-093-8/+0
|\ | | | | Cleanup unused engine code
| * Cleanup unused engine codeTomasz Chabora2020-12-093-8/+0
| |
* | Merge pull request #43931 from bruvzg/ctl_comp_fontRémi Verschelde2020-12-091-1/+4
|\ \ | |/ |/| [Complex Text Layouts] Add compatibility for legacy Font resources.
| * [Complex Text Layouts] Add compatibility for legacy Font resources.bruvzg2020-12-031-1/+4
| |
* | Constify ScriptLanguage.can_inherit_from_fileEmmanuel Leblond2020-12-081-1/+1
| |
* | Remove connect *_compat methodsAaron Franke2020-12-052-16/+0
| |
* | Refactor DocData into core and editor (DocTools) partsThakee Nathees2020-12-021-2/+2
| |
* | Documentation generation for GDScriptThakee Nathees2020-11-291-0/+6
|/ | | | | | | | | | | | | | | | | | - ClassDoc added to GDScript and property reflection data were extracted from parse tree - GDScript comments are collected from tokenizer for documentation and applied to the ClassDoc by the GDScript compiler - private docs were excluded (name with underscore prefix and doesn't have any doc comments) - default values (of non exported vars), arguments are extraced from the parser - Integrated with GDScript 2.0 and new enums were added. - merge conflicts fixed
* Merge pull request #43061 from qarmin/crash_when_prining_nodesRémi Verschelde2020-11-281-15/+22
|\ | | | | Fix crash when printing leaked nodes
| * Fix crash when printing leaked nodesRafał Mikrut2020-11-171-15/+22
| |
* | Mention lack of optional setter arguments in `ClassDB::add.property()`Hugo Locurcio2020-11-281-0/+1
| |
* | Core: Always enable ptrcall, remove PTRCALL_ENABLED defineRémi Verschelde2020-11-252-19/+2
|/ | | | | | | ptrcall is now also used to optimize calls in GDScript, on top of the existing use by the GDNative and Mono modules. It no longer makes sense to make it optional.
* Remove empty lines around braces with the formatting scriptAaron Franke2020-11-164-7/+0
|
* Remove property groups for Pause Mode and ScriptHugo Locurcio2020-11-151-3/+0
| | | | | | Each of those only grouped 1 property, making them useless. This closes https://github.com/godotengine/godot-proposals/issues/1840.
* Refactored variant constructor logicreduz2020-11-091-1/+2
|
* Reorganized core/ directory, it was too fatty alreadyreduz2020-11-0718-0/+8522
-Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code