summaryrefslogtreecommitdiffstats
path: root/modules/gdscript
Commit message (Collapse)AuthorAgeFilesLines
* Close file handles after use of new get_as_utf8_strings, fixes #26578Juan Linietsky2019-03-041-3/+4
|
* Revert "Forbid implicit type conversion in GDScript"Rémi Verschelde2019-03-044-16/+110
|
* Merge pull request #26562 from vnen/gdscript-no-implicit-castRémi Verschelde2019-03-044-110/+16
|\ | | | | Forbid implicit type conversion in GDScript
| * GDScript: Forbid implicit type conversionGeorge Marques2019-03-034-110/+16
| | | | | | | | | | Since types are not present in release builds, this could cause issues where a variable does not have the exact defined type.
* | GDScript: Fix issue when detecting file class in inner classGeorge Marques2019-03-031-1/+1
| |
* | GDScript: Allow `for` iterator to be rededefinedGeorge Marques2019-03-031-1/+0
|/
* Merge pull request #26547 from vnen/gdscript-dependency-parseJuan Linietsky2019-03-034-78/+139
|\ | | | | Add a parse mode for GDScript which doesn't load dependencies
| * Add a dependency search mode for GDScript parserGeorge Marques2019-03-034-78/+139
| | | | | | | | | | | | | | | | - This mode avoids loading any other resource. - Search for class_name now uses this mode, to avoid loading in the scan thread. - Implement get_dependencies() for GDScript loader, now exporting dependencies only should include the preloaded resources.
* | Merge pull request #26528 from bojidar-bg/26047-gdscript-object-argumentGeorge Marques2019-03-031-4/+9
|\ \ | | | | | | Allow parameters passed to GDScript functions to be nulled
| * | Allow parameters passed to GDScript functions to be nulledBojidar Marinov2019-03-031-4/+9
| |/ | | | | | | | | Previous version resulted in confusing (but actually right) errors about converting "from Object to Object", since CallError does not include information about the actual types involved.
* / Fix GDScript checking for assigning to a constant only in releaseBojidar Marinov2019-03-031-7/+10
|/
* Merge pull request #26034 from QbieShay/issue_25596Rémi Verschelde2019-02-281-1/+2
|\ | | | | Inheriting from virtual class no longer causes the engine to crash.
| * Inheriting from virtual class no longer causes the engine to crash, it ↵QbieShay2019-02-271-1/+2
| | | | | | | | | | | | prints an error instead. Co-authored-by: Hein-Pieter van Braam <hp@tmm.cx>
* | Merge pull request #26134 from marxin/fix-Wsign-compareRémi Verschelde2019-02-271-2/+2
|\ \ | | | | | | Fix -Wsign-compare warnings.
| * | Fix -Wsign-compare warnings.marxin2019-02-271-2/+2
| | | | | | | | | | | | | | | I decided to modify code in a defensive way. Ideally functions like size() or length() should return an unsigned type.
* | | Fix GDScript exports having the wrong type of default value by converting itBojidar Marinov2019-02-261-0/+10
|/ / | | | | | | | | Also, initialize elements of PoolArrays when resizing them in the editor. Fixes #26066.
* | Merge pull request #25018 from AllanDaemon/#24895George Marques2019-02-242-2/+4
|\ \ | | | | | | Fix support for optional parameters in setters
| * | Fix #24895 (support for optional parameters in setters)Allan Daemon2019-01-232-2/+4
| | |
* | | Merge pull request #26132 from marxin/fix-Wignored-qualifiersRémi Verschelde2019-02-221-3/+3
|\ \ \ | | | | | | | | Fix warnings seen with -Wignored-qualifiers.
| * | | Fix warnings seen with -Wignored-qualifiers.marxin2019-02-211-3/+3
| | | |
* | | | Merge pull request #26099 from marxin/fix-Wtype-limits-warningsRémi Verschelde2019-02-221-2/+2
|\ \ \ \ | | | | | | | | | | Fix all -Wtype-limits warnings.
| * | | | Fix all -Wtype-limits warnings.marxin2019-02-211-2/+2
| |/ / /
* / / / Request to use load when cyclic reference is found, closes #26119Juan Linietsky2019-02-211-1/+1
|/ / /
* | | Add -Wshadow=local to warnings and fix reported issues.marxin2019-02-205-80/+80
| | | | | | | | | | | | Fixes #25316.
* | | GDScript: Remove unused `switch`, `case` and `do` CF keywordsRémi Verschelde2019-02-204-17/+1
| |/ |/| | | | | | | | | | | | | | | | | | | | | They had been reserved for future implementation, but we now have the `match` CF keyword which does the same and more. According to @reduz `do` was even added by mistake when copying from the shader language parser, it was never intended to add support for `do`... `while` loops, as the syntax would be awkward in GDScript, and the added sugar is not worth it. Fixes #25787.
* | Merge pull request #25715 from hpvb/fix-25598Rémi Verschelde2019-02-161-9/+18
|\ \ | | | | | | Add a maximum recusion depth to _guess_expression_type
| * | Add a maximum recusion depth to _guess_expression_typeHein-Pieter van Braam2019-02-081-9/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a recursive declaration ends up in a GDScript file the _guess_expression_type function would start looping and eventually run out of stack space. We now cap recusion for this function to 100 frames. This fixes #25598
* | | Merge pull request #25866 from neikeq/issue-25121Rémi Verschelde2019-02-141-1/+1
|\ \ \ | | | | | | | | Fix exported property values being lost if base GDScript fails to parse
| * | | Fix exported property values being lost if base GDScript fails to parseIgnacio Etcheverry2019-02-141-1/+1
| | | |
* | | | Fix typos with codespellRémi Verschelde2019-02-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using codespell 1.14.0. Method: ``` $ cat > ../godot-word-whitelist.txt << EOF ang doubleclick lod nd numer que te unselect EOF $ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po" $ git diff // undo unwanted changes ```
* | | | Core: Ensure classes match their header filenameRémi Verschelde2019-02-122-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also drop some unused files. Renamed: - `core/dvector.h` -> `pool_vector.h` - `core/io/resource_import.h` -> `resource_importer.h` - `core/sort.h` -> `sort_array.h` - `core/string_db.h` -> `string_name.h` Dropped: - `core/allocators.h` - `core/os/shell.h` - `core/variant_construct_string.cpp`
* | | | Merge pull request #25481 from hpvb/fix-ubsan-asan-reportsRémi Verschelde2019-02-124-2/+18
|\ \ \ \ | | | | | | | | | | Fix many asan and ubsan reported issues
| * | | | Fix many asan and ubsan reported issuesHein-Pieter van Braam2019-01-304-2/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows most demos to run without any ubsan or asan errors. There are still some things in thirdpart/ and some things in AudioServer that needs a look but this fixes a lot of issues. This should help debug less obvious issues, hopefully. This fixes #25217 and fixes #25218
* | | | | Merge pull request #25550 from DualMatrix/fix-25357Rémi Verschelde2019-02-121-0/+19
|\ \ \ \ \ | |_|/ / / |/| | | | Fixed Null appearing inside export variables with type hints and no default value
| * | | | Fixed Null appearing inside export variables with type hints and no default ↵DualMatrix2019-02-011-0/+19
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | value The default value of the type is now used to initialise it. export(int) A Will now have A be 0 istead of Null even though it still showed as 0 before in the inspector, fixes #25357
* | | | Merge pull request #25650 from willnationsdev/script-iconRémi Verschelde2019-02-091-8/+12
|\ \ \ \ | |_|/ / |/| | | Fix script class icons looking for paths at runtime
| * | | Fix script class icon filepath lookups at runtime.Will Nations2019-02-061-8/+12
| | |/ | |/|
* | | Fix wrong error messages for invalid arguments when calling functions ↵Bojidar Marinov2019-01-311-1/+1
| |/ |/| | | | | | | | | through call Fixes #25505
* | Ensure get script method list also checks base classes, fixes #23384Juan Linietsky2019-01-251-8/+13
| |
* | GDScript: do second pass of parsing on releaseGeorge Marques2019-01-231-6/+9
| | | | | | | | | | | | Some construct (like match) actually depends on the second pass. This adds some extra checks to not perform specific type-checks on release since not all type information is available.
* | GDScript: fix default value for autoexported typed varsGeorge Marques2019-01-231-1/+1
| |
* | GDScript: read constants from parent scriptsGeorge Marques2019-01-231-0/+15
| | | | | | | | | | This is needed to create export variables from enums defined in a parent class.
* | GDScript: don't allow calling non-static function from scriptGeorge Marques2019-01-231-1/+2
| |
* | GDScript: allow local classes to be used as typesGeorge Marques2019-01-231-0/+6
|/
* GDScript: Fix return value of "lerp" builtinRémi Verschelde2019-01-181-1/+2
| | | | Fixes #25082, fixes #24709.
* Merge pull request #25069 from vnen/gdscript-fixesHein-Pieter van Braam2019-01-173-29/+19
|\ | | | | A bit more of GDScript fixes
| * GDScript compiler: check if subclass exists before comparisonGeorge Marques2019-01-171-2/+2
| | | | | | | | | | Otherwise these checks might trigger the insertion of an empty value, leading to crashes.
| * GDScript: clarify error message about cyclesGeorge Marques2019-01-161-3/+3
| | | | | | | | They may happen with any cyclic dependency, not only with inheritance.
| * GDScript: fix type-check of indexed valuesGeorge Marques2019-01-162-24/+14
| |
* | Merge pull request #25001 from jlahman/gdscript-export-var-fixRémi Verschelde2019-01-161-0/+4
|\ \ | |/ |/| Fixes export PackedScene "reset to default" throwing errors