summaryrefslogtreecommitdiff
path: root/core/object
AgeCommit message (Collapse)Author
2023-02-26Remove unused `ScriptLanguage` methodsvoidedWarranties
2023-02-15Add missing virtual bind for `ScriptExtension::_get_global_name`voidedWarranties
2023-02-11Improve error reporting when the Message Queue is out of Memory.AndreaCatania
The function `statistics()`, called when the MessageQueue is out of memory, will still use the MessageQueue so it crashes. Moving the error above will improve the behavior since the developer will find the crash reasons and the instruction on how to fix it.
2023-02-11Merge pull request #72654 from RandomShaper/ptrcall_ret_raw_objRémi Verschelde
Avoid losing references to objects in the native-scripting boundary
2023-02-10Add Engine::unregister_script_language and make ↵Emmanuel Leblond
Engine::register_script_language returns a Error
2023-02-03Avoid losing references to objects in the native-scripting boundaryPedro J. Estébanez
2023-02-03Remove unused has_global_classes()kobewi
2023-02-01More codespell fixes, do more changes from previous ignore listRémi Verschelde
2023-01-31Restore script class cache if removedJuan Linietsky
I have no idea why anyone would do this, but this fixes it. Fixes #72154. Depends on #72444 being merged to function properly.
2023-01-27Merge pull request #72111 from raulsntos/method-info-metadataRémi Verschelde
Add `GodotTypeInfo::Metadata` to `MethodInfo`
2023-01-26Add `GodotTypeInfo::Metadata` to `MethodInfo`Raul Santos
2023-01-24Add PROPERTY_USAGE_NEVER_DUPLICATE flag and use for scriptAaron Franke
Co-authored-by: Yakov Borevich <j.borevich@gmail.com>
2023-01-24PropertyUsage: Rename "DO_NOT_SHARE_ON_DUPLICATE" to "ALWAYS_DUPLICATE"Aaron Franke
2023-01-21Use range iterators in LocalVector loopskobewi
2023-01-21Merge pull request #71687 from reduz/support-script-class-name-in-efsRémi Verschelde
Support script global resource name in EditorFileSystem
2023-01-21Support script global resource name in EditorFileSystemJuan Linietsky
* Works for binary and text files. * Makes EditorQuickOpen work with custom resources again. * Information is cached and easily accessible. Properly fixes #66179. Supersedes #66215 and supersedes #62417 **WARNING**: This required breaking backwards binary compatibility (.res and .scn files). Files saved after this PR is merged will no longer open in any earlier versions of Godot.
2023-01-19Implement a quick script inheritance checkJuan Linietsky
Optimizes, simplifies and fixes EditorResourcePicker (was not refreshing custom clases).
2023-01-18Clean up EditorFileSystem script parsingJuan Linietsky
* Optimize only update modified/added/removed files. * Clean up documentation parsing.
2023-01-16Move global script class cache to separate filekobewi
2023-01-10Fix Callable call error reporting.Juan Linietsky
* Fix potential crash when using bind in `Variant::get_callable_error_text()` * Properly compute bound arguments so they can be properly shown. * Add a function to obtain the actual bound arguments.
2023-01-09Removed unused property hints and `Object::get_translatable_strings()`Juan Linietsky
* Remove unused `EditorPropertyMember` and related hints, previouly used by VisualScript. Such logic should be implemented in the VS module itself. * As the above broke compatibility with the VS module, clean up the other hacks that were still in core in support of VisualScript. * `PROPERTY_USAGE_INTERNATIONALIZED` was only used in Object's `get_translatable_strings()`, which is a legacy function not used anywhere. So both are removed. * Reordered some usage flags after the above removal to minimize the diff. * General clean up. Fixes #30203. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2023-01-09Merge pull request #70996 from reduz/properly-report-callable-bound-argumentsRémi Verschelde
Properly report Callable bound arguments
2023-01-09Merge pull request #71045 from reduz/use-bitfield-in-core-typesRémi Verschelde
Use BitField<> in core type masks
2023-01-08Properly report Callable bound argumentsJuan Linietsky
Fixes #63213 Adds a function: Callable::get_amount_of_arguments_bound() to query this in callables. Exposed to the engine API.
2023-01-08Use BitField<> in core type masksJuan Linietsky
* All core types masks are now correctly marked as bitfields. * The enum hacks in MouseButtonMask and many other types are gone. This ensures that binders to other languages non C++ can actually implement type safe bitmasks. * Most bitmask operations replaced by functions in BitField<> * Key is still a problem because its enum and mask at the same time. While it kind of works in C++, this most likely can't be implemented safely in other languages and will have to be changed at some point. Mostly left as-is. * Documentation and API dump updated to reflect bitfields in core types.
2023-01-06Fix `ScriptInstanceExtension::get_property_default_value` return valuevoidedWarranties
2023-01-06Merge pull request #68429 from KoBeWi/PropertySettingsRémi Verschelde
Add PropertyInfo overload for GLOBAL_DEF
2023-01-06Merge pull request #64253 from heppocogne/Fix-native-enum-release-1Rémi Verschelde
Register enum type names in release build
2023-01-05One Copyright Update to rule them allRémi Verschelde
As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
2022-12-30Register native base class name of enum types when release buildheppocogne
2022-12-13Improve logic around using Ref<T> with GDExtension virtual functionsBastiaan Olij
2022-12-12Merge pull request #69718 from groud/finally_rename_gdnative_to_gdextensionRémi Verschelde
Rename all gdnative occurences to gdextension
2022-12-12Rename all gdnative occurences to gdextensionGilles Roudière
Non-exhaustive list of case-sensitive renames: GDExtension -> GDNative GDNATIVE -> GDEXTENSION gdextension -> gdnative ExtensionExtension ->Extension (for where there was GDNativeExtension) EXTENSION_EXTENSION ->EXTENSION (for where there was GDNATIVE_EXTENSION) gdnlib -> gdextension gdn_interface -> gde_interface gdni -> gde_interface
2022-12-11Add PropertyInfo overload for GLOBAL_DEFkobewi
2022-12-08Fix unable to disconnect signal in Editor once createdMicky
Adds a CONNECT_INHERITED flag to connections, only available in editor builds. This flag denotes that the signal has been inherited from a previous Scene in the instancing hierarchy.
2022-12-05Merge pull request #69343 from YuriSizov/core-missing-property-revert-gettersRémi Verschelde
Add missing public `property_*_revert` getters
2022-12-05Merge pull request #69357 from TokageItLab/byebye-triggerRémi Verschelde
Remove `UPDATE_TRIGGER` mode from `ValueTrack::UpdateMode` & Match behaviors between `AnimationTree` and `AnimationPlayer`
2022-12-02Fix const qualifier for parameters in GDExtension api functionsEmmanuel Leblond
2022-12-02Remove UPDATE_TRIGGER & Match behaviors between AnimationTree/PlayerSilc Renew
#69357
2022-11-29Add missing public property_*_revert gettersYuri Sizov
2022-11-29Merge pull request #67680 from haasanen/fix_physics_thread_race_conditionRémi Verschelde
Fix physics/3d/run_on_separate_thread race condition in WorkerThreadPool (crash).
2022-11-24Add MAKE_RESOURCE_TYPE_HINT macro to simplify binding arrays of resourcesRémi Verschelde
2022-11-21Fixes inability to assign script after clearingocean (they/them)
2022-11-15Remove `PROPERTY_HINT_IMAGE_COMPRESS` constantsMicky
These were used in 3.x but there's no reference of them in the codebase, at all.
2022-11-14Merge pull request #67963 from KoBeWi/den_of_actionsRémi Verschelde
Fix nested actions in EditorUndoRedoManager
2022-11-12Revert removal of ↵Emmanuel Leblond
GDNativeExtensionScriptInstanceInfo::get_property_type_func in GDExtension This function pointer is needed to stay close to internal Godot's ScriptInstance class. Besides, by removing this function pointer, we had to do property list create/free each time we want to access type which is quadratic complexity :/
2022-11-09Fix default values on virtual classes causing errors in projectsAaron Franke
2022-11-08Use StringName in the whole GDExtension API instead of const char *Emmanuel Leblond
2022-11-06Fix default values not showing up on virtual classesAaron Franke
2022-11-05Don't allow instancing virtual node types in the Create New Node dialogAaron Franke