summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge pull request #65910 from KoBeWi/gdsusRémi Verschelde2023-02-031-2/+12
|\ | | | | Cleanup function state connections when destroying instance
| * Cleanup function state connections when destroying instancekobewi2022-12-021-2/+12
| | | | | | | | Co-authored-by: Adam Scott <ascott.ca@gmail.com>
* | Merge pull request #72444 from reduz/fix-global-class-parsingRémi Verschelde2023-01-311-13/+83
|\ \ | | | | | | | | | Fix global script class parsing.
| * | Fix global script class parsing.Juan Linietsky2023-01-311-13/+83
| | | | | | | | | | | | | | | | | | | | | | | | * Broke with #72226 * Restored previous version of the code, made it even more error tolerant. * Added a warning to **not** change the code. Fixes #72226.
* | | GDScript: Fix issues with typed arraysDmitrii Maganov2023-01-311-35/+14
|/ /
* | GDScript: Avoid calling non-static methods on native classesGeorge Marques2023-01-281-1/+1
| |
* | GDScript: Allow constant expressions in annotationsDanil Alexeev2023-01-251-79/+21
| |
* | Merge pull request #71687 from reduz/support-script-class-name-in-efsRémi Verschelde2023-01-211-0/+4
|\ \ | | | | | | | | | Support script global resource name in EditorFileSystem
| * | Support script global resource name in EditorFileSystemJuan Linietsky2023-01-211-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | | Remove references to compiled GDScript in exportGeorge Marques2023-01-201-18/+1
|/ / | | | | | | | | This feature was removed from GDScript so it should not be present on the interface nor in the saved export presets.
* | Add default virtual `gdscript://` path to `GDScript` instancesAdam Scott2023-01-121-1/+3
| |
* | Resolve `GDScript::clear()` `heap-use-after-free` ASAN errorsAdam Scott2023-01-071-32/+45
| |
* | Merge pull request #68429 from KoBeWi/PropertySettingsRémi Verschelde2023-01-061-6/+2
|\ \ | | | | | | Add PropertyInfo overload for GLOBAL_DEF
| * | Add PropertyInfo overload for GLOBAL_DEFkobewi2022-12-111-6/+2
| | |
* | | One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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".
* | | Merge pull request #70503 from rune-scape/inner-class-docsRémi Verschelde2023-01-031-0/+4
|\ \ \ | | | | | | | | | | | | Inner classes get their docs back
| * | | Inner classes get their docs backrune-scape2022-12-231-0/+4
| | | |
* | | | Unify GDScriptAnalyzer in-editor and runtime autoload checksocean (they/them)2022-12-201-0/+10
|/ / /
* | | Merge pull request #70000 from rune-scape/find-more-classesRémi Verschelde2022-12-171-10/+16
|\ \ \ | | | | | | | | GDScript: Fix built-in script `find_class` bugs
| * | | GDScript: Fix built-in script and other `find_class` bugsrune-scape2022-12-151-10/+16
| | | |
* | | | Fix `GDScript::_get_gdscript_from_variant()` crashAdam Scott2022-12-151-6/+1
|/ / / | | | | | | | | | | | | The crash would happen, theoretically, when getting the type of a invalid variant.
* / / Add GDScript member initializer implicit type conversionocean (they/them)2022-12-111-0/+1
|/ /
* | Remove debug macro for GDScriptLanguage script_listAdam Scott2022-12-101-4/+0
| |
* | Merge pull request #69467 from rune-scape/rune-subclass-script-pathRémi Verschelde2022-12-101-6/+12
|\ \ | | | | | | GDScript: Fix subclass script path issues
| * | GDScript: Fix subclass script path issuesrune-scape2022-12-011-6/+12
| |/
* / Move GDScript uninitialization to `GDScriptLanguage::finalize()`Adam Scott2022-12-061-30/+36
|/ | | | | Co-authored-by: Ricardo Buring <ricardo.buring@gmail.com> Co-authored-by: kleonc <9283098+kleonc@users.noreply.github.com>
* Fix cyclic references in GDScript 2.0Adam Scott2022-11-181-31/+254
|
* GDScript compiler subclass bugfixesRune2022-11-131-74/+66
|
* Fix built-in script path of GDScriptWei Guo2022-10-251-0/+5
|
* Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-071-67/+67
| | | | change warnings=all to use /W4.
* GDScript/C#: Tweak error message for invalid script type for objectRémi Verschelde2022-10-041-2/+2
| | | | See #66870.
* Load/update GDScript from disk on load if cache mode is CACHE_MODE_IGNORERindbee2022-09-241-1/+1
|
* Fix last_modified_time on scriptsYuri Rubinsky2022-09-121-2/+4
|
* Rename String `plus_file` to `path_join`Aaron Franke2022-08-291-3/+3
|
* Make `property_*_revert` methods multilevel and expose them for scriptingYuri Sizov2022-08-181-0/+43
|
* Fix script documentation method argument default valuesXwdit2022-08-101-1/+3
| | | | Co-Authored-By: Rémi Verschelde <rverschelde@gmail.com>
* Removed faulty function update after get_property_list.Hristo Stamenov2022-08-031-12/+30
| | | | The function tried to rearrange properties but that lead to problems with duplication or deleted properties. Implemented the logic that that function did inside the get_property_list both for tool scripts and non-tool scripts.
* Swap arguments of ResourceSaver.save()kobewi2022-07-291-1/+1
|
* Move editor paths into the EditorPaths classAaron Franke2022-07-291-2/+2
|
* Merge pull request #63049 from Faless/mp/4.x_as_moduleRémi Verschelde2022-07-281-18/+10
|\
| * [Net] Modularize multiplayer, expose MultiplayerAPI to extensions.Fabio Alessandrelli2022-07-261-18/+10
| | | | | | | | | | | | | | | | | | - RPC configurations are now dictionaries. - Script.get_rpc_methods renamed to Script.get_rpc_config. - Node.rpc[_id] and Callable.rpc now return an Error. - Refactor MultiplayerAPI to allow extension. - New MultiplayerAPI.rpc method with Array argument (for scripts). - Move the default MultiplayerAPI implementation to a module.
* | fix(gdscript): Fix out of bounds crash after reloading member variablesAntonio Dell'Annunziata2022-07-281-2/+2
|/ | | | | The crash happens because the members Vector is resized, while the member_indices_cache still has the old indices saved. On deleting a member from the script this can result to a cached index of 1 while the members Vector size is only 1.
* Fix missing method qualifiers in script docXwdit2022-07-241-0/+5
| | | | Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
* Don't print redundant errors when parsing GDScriptDallon Feldner2022-07-221-3/+3
| | | The error macros print a generic error, which isn't necessary, and could be confusing to end users.
* Fix grouping annotations displayed in documentXwdit2022-07-151-0/+3
|
* Remove unused hintskobewi2022-07-121-1/+0
|
* Allows parsing of invalid UTF-16 surrogates (can be encountered in Windows ↵bruvzg2022-07-071-1/+1
| | | | filenames) and some non-standard UTF-8 variants, makes Unicode parse errors more verbose.
* GDScript: Use implicit method for @onready variablesGeorge Marques2022-06-241-0/+16
| | | | | | Initialize them with the implicit method so they're not related to the overriding of the `_ready` method of the script but instead are always set.
* GDScript: Don't add implicit constructor to the list of functionsGeorge Marques2022-06-241-0/+4
| | | | | So it's not shown on docs or when listing the methods. This also avoids being able to call it using the `call()` function.
* Make enum/constant binds 64-bit.bruvzg2022-06-171-1/+1
|