summaryrefslogtreecommitdiff
path: root/modules/gdscript
AgeCommit message (Collapse)Author
2020-05-10Style: clang-format: Disable AllowShortIfStatementsOnASingleLineRémi Verschelde
Part of #33027, also discussed in #29848. Enforcing the use of brackets even on single line statements would be preferred, but `clang-format` doesn't have this functionality yet.
2020-05-10Merge pull request #37160 from ↵Rémi Verschelde
ThakeeNathees/saveing-cyclic-inheritance-crash-fix Fix: saving gdscript with cyclic inheritance crash the editor
2020-05-10Merge pull request #37020 from aaronfranke/rangeRémi Verschelde
Allow using integer vectors for iteration and make range() use them
2020-05-10fixed: saving gdscript with cyclic inheritance crash the editorThakee Nathees
Fix: #9609
2020-05-10more clearer unexpected statement end error messagesThakee Nathees
2020-05-09Merge pull request #38481 from RandomShaper/improve_yieldRémi Verschelde
Fix object leaks caused by unfulfilled yields
2020-05-09Merge pull request #38357 from ThakeeNathees/dict2inst-crash-fixRémi Verschelde
fix: dict2inst crash when constructor has arguments
2020-05-09Merge pull request #37598 from ThakeeNathees/GDScript-type-resolve-bug-fixRémi Verschelde
GDScript class var type resolve bug fixed
2020-05-09Merge pull request #37033 from ThakeeNathees/python-like-str-escapeRémi Verschelde
python like string escape implemented
2020-05-09Merge pull request #38412 from ThakeeNathees/static-func-var-accessRémi Verschelde
parser error for static func access non-static variables
2020-05-09Change get_completion_identifier_is_function to return a boolAaron Franke
A minor bugfix
2020-05-09Allow using integer vectors for iteration and make range() use themAaron Franke
2020-05-05Fix object leaks caused by unfulfilled yieldsPedro J. Estébanez
Now the stack saved in a `GDScriptFunctionState` is cleared as soon as the `yield()` operation is known not to be resumed because either the script, the instance or both are deleted. This clears problems like leaked objects by eliminating cases of circular references between `GDScriptFunctionState`s preventing them and the objects they refer to in their saved stacks from being released. As an example, this makes using `SceneTreeTimer` safer. Furthermore, with this change it's now possible to print early warnings about `yield()`s to released script/instances, as now we know they won't be successfully resumed as the condition for that happens. However, this PR doesn't add such messages, to keep the observed behavior the same for the time being. Also, now a backup of the function name in `GDScriptFunctionState` is used, since the script may not be valid by the time the function name is needed for the resume-after-yield error messages.
2020-05-05Merge pull request #37293 from Janglee123/ctrl-click-improvementsRémi Verschelde
Improved go-to definition (Ctrl + Click)
2020-05-05Improved go-to definition (Ctrl + Click)janglee
Co-Authored-By: Bojidar Marinov <bojidar.marinov.bg@gmail.com>
2020-05-03Merge pull request #32534 from Xrayez/fix-dict2inst-initRémi Verschelde
Make `dict2inst` to work with arbitrary `_init` parameters
2020-05-03parser error for static func access non-static variablesThakee Nathees
Fix: #38408
2020-05-02Mention offending function name in "Indented block expected" errorSteven Schoen
2020-05-01Merge pull request #38105 from AndreaCatania/AndreaCatania-patch-2Fabio Alessandrelli
Removed noisy ERR check from Multiplayer API.
2020-04-30Make `dict2inst` to work with arbitrary `_init` parametersAndrii Doroshenko (Xrayez)
This is achieved by skipping initializer call while creating an instance of a GDScript. This is implemented by passing -1 as an argument count to `_new` and interpreting any value below 0 to mean that the initializer should not be called during instantiation, because internal members of an instance are going to be overridden afterwards.
2020-04-30fix: dict2inst crash when constructor has argumentsThakee Nathees
2020-04-29Merge pull request #38288 from RandomShaper/imvu/fix_not_freed_gdsfuncstateRémi Verschelde
Fix leaked objects when game ends with yields in progress
2020-04-29Merge pull request #38279 from BigRed-118/assert_mark_as_safe_regression_bugRémi Verschelde
Fix for marking assert lines as safe bug
2020-04-29Fix leaked objects when game ends with yields in progressPedro J. Estébanez
2020-04-29[Core] Rename linear_interpolate to lerpAaron Franke
2020-04-27Fix for marking assert lines as safe bugTom Evans
Calling _reduce_node_type from GDScriptParser::_parse_block for assert was using a current class with a scope that didn't include all functions. Now calling in GDScriptParser::_check_block_types uses the right class type. We also now check the assert node message. The assert line was added to the set_errors associated with assert, since before the error would be reported on the next line
2020-04-27Merge pull request #36927 from ThakeeNathees/export-var-type-reduce-implimentedRémi Verschelde
Fix: export var type reduce() implemented
2020-04-27export var type reduce() implementedThakee Nathees
2020-04-24Merge pull request #37172 from theoway/autoCompletionBugRémi Verschelde
Fixed the auto-completion bug in gdscript_editor
2020-04-24Merge pull request #37265 from BigRed-118/mark_assert_safeRémi Verschelde
Mark assert lines as safe in gdscript
2020-04-24Merge pull request #37232 from ThakeeNathees/load()-autocomplete-imlpementedRémi Verschelde
autocomplete for load() function implemented
2020-04-22Merge pull request #37318 from ttencate/fix/argument_nulled_37312Rémi Verschelde
Revert "Allow parameters passed to GDScript functions to be nulled"
2020-04-22Removed noisy ERR check from Multiplayer API.Andrea Catania
2020-04-21Merge pull request #37537 from ThakeeNathees/const-parsing-datatype-bug-fixRémi Verschelde
GDScript: Fix type inference for const reference to global class
2020-04-21Merge pull request #37712 from stoofin/pattern-bind-warningRémi Verschelde
Fix unassigned variable warnings for match bindings
2020-04-21Merge pull request #38041 from ThakeeNathees/class-name-check-enhanceRémi Verschelde
GDScript class name existance check enhanced
2020-04-21Merge pull request #37955 from ThakeeNathees/lin-unsafe-base-know-index-unkonwnRémi Verschelde
Line marked unsafe when base known and index unkonwn
2020-04-21Merge pull request #37954 from ThakeeNathees/autocomplete-indexing-native-typesRémi Verschelde
Autocompleting with indexing for builtin types added
2020-04-21Add ability to bind typed arrays to script APIJuan Linietsky
Note: Only replaced 2 instances to test, Node.get_children and TileMap.get_used_cells Note: Will do a mass replace on later PRs of whathever I can find, but probably need a tool to grep through doc. Warning: Mono will break, needs to be fixed (and so do TypeScript and NativeScript, need to ask respective maintainers)
2020-04-20Exposed RenderingDevice to script APIJuan Linietsky
Also added an easier way to load native GLSL shaders. Extras: Had to fix no-cache for subresources in resource loader, it was not properly working, making shaders not properly reload. Note: The precommit hooks are broken because they don't seem to support enums from one class being used in another. Feel free to fix this after merging this PR.
2020-04-20Fix handling of PROPERTY_USAGE_SUBGROUP in DocData and editorRémi Verschelde
Subgroups were added in #37678 but not properly handled everywhere where PROPERTY_USAGE_GROUP is.
2020-04-20DocData: Skip unexposed classesRémi Verschelde
Properly expose classes that we actually want accessible.
2020-04-20GDScript class name existance check enhancedThakee Nathees
2020-04-17line unsafe for indexing with known base type & unkown identifierThakee Nathees
2020-04-17autocompleting with indexing for native types addedThakee Nathees
Fix: #37768
2020-04-16Fixed the bool _static logic Umang Kalra
2020-04-14Merge pull request #37861 from reduz/implement-decalsRémi Verschelde
Implement decals
2020-04-14Implement decalsJuan Linietsky
Also implemented decal atlas, so projectors and other stuff can be added. Sidenote: Had to make RID hashable, so some unrelated includes changed in order to include it in hashfuncs.h
2020-04-13Merge pull request #37817 from ThakeeNathees/disconnect-autocompleteRémi Verschelde
autocomplete for disconnect implemented
2020-04-13autocomplete for disconnect, is_connected implementedThakee Nathees