summaryrefslogtreecommitdiffstats
path: root/modules
Commit message (Collapse)AuthorAgeFilesLines
* Style: clang-format: Disable AllowShortIfStatementsOnASingleLineRémi Verschelde2020-05-1024-121/+238
| | | | | | | 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.
* Merge pull request #37160 from ↵Rémi Verschelde2020-05-102-4/+27
|\ | | | | | | | | ThakeeNathees/saveing-cyclic-inheritance-crash-fix Fix: saving gdscript with cyclic inheritance crash the editor
| * fixed: saving gdscript with cyclic inheritance crash the editorThakee Nathees2020-05-102-4/+27
| | | | | | | | Fix: #9609
* | Merge pull request #37020 from aaronfranke/rangeRémi Verschelde2020-05-102-9/+9
|\ \ | | | | | | Allow using integer vectors for iteration and make range() use them
| * | Change get_completion_identifier_is_function to return a boolAaron Franke2020-05-092-2/+2
| | | | | | | | | | | | A minor bugfix
| * | Allow using integer vectors for iteration and make range() use themAaron Franke2020-05-091-7/+7
| | |
* | | Merge pull request #36937 from ThakeeNathees/statement-end-error-message-fixRémi Verschelde2020-05-102-12/+23
|\ \ \ | | | | | | | | Fix: more clearer unexpected statement end error messages
| * | | more clearer unexpected statement end error messagesThakee Nathees2020-05-102-12/+23
| | |/ | |/|
* / | Renamed plane's d to distanceMarcus Elg2020-05-108-41/+41
|/ /
* | Merge pull request #38481 from RandomShaper/improve_yieldRémi Verschelde2020-05-094-32/+88
|\ \ | | | | | | Fix object leaks caused by unfulfilled yields
| * | Fix object leaks caused by unfulfilled yieldsPedro J. Estébanez2020-05-054-32/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge pull request #38357 from ThakeeNathees/dict2inst-crash-fixRémi Verschelde2020-05-091-0/+5
|\ \ \ | | | | | | | | fix: dict2inst crash when constructor has arguments
| * | | fix: dict2inst crash when constructor has argumentsThakee Nathees2020-04-301-0/+5
| | | |
* | | | Merge pull request #37598 from ThakeeNathees/GDScript-type-resolve-bug-fixRémi Verschelde2020-05-091-0/+4
|\ \ \ \ | | | | | | | | | | GDScript class var type resolve bug fixed
| * | | | GDScript class var type resolve bug fixedThakee Nathees2020-04-051-0/+4
| | | | | | | | | | | | | | | | | | | | Fix: #37545
* | | | | Merge pull request #37033 from ThakeeNathees/python-like-str-escapeRémi Verschelde2020-05-091-11/+13
|\ \ \ \ \ | | | | | | | | | | | | python like string escape implemented
| * | | | | python like string escape implementedThakee Nathees2020-03-151-11/+13
| | | | | |
* | | | | | Merge pull request #38412 from ThakeeNathees/static-func-var-accessRémi Verschelde2020-05-091-0/+4
|\ \ \ \ \ \ | | | | | | | | | | | | | | parser error for static func access non-static variables
| * | | | | | parser error for static func access non-static variablesThakee Nathees2020-05-031-0/+4
| | |_|/ / / | |/| | | | | | | | | | | | | | | | Fix: #38408
* | | | | | C#: Remove StringExtensions.Empty() functionIgnacio Etcheverry2020-05-091-13/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Causes issues with some editors as it's confused with `string.Empty`. Should use `string.IsNullOrEmpty(str)` instead.
* | | | | | Merge pull request #38596 from neikeq/msbuild-restoreIgnacio Roldán Etcheverry2020-05-094-132/+25
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | | Mono: Use msbuild instead of nuget.exe for restoring
| * | | | | Mono: Use msbuild instead of nuget.exe for restoringIgnacio Etcheverry2020-05-094-132/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Make GodotTools output directly to the SCons output directory. - Removed xbuild_fallback from the build system.
* | | | | | Mono: Fix hot-reloading of nested classesIgnacio Etcheverry2020-05-093-6/+21
|/ / / / /
* | | | | Merge pull request #36379 from aaronfranke/color-constructorsRémi Verschelde2020-05-071-1/+9
|\ \ \ \ \ | | | | | | | | | | | | Add a Color constructor for Color with alpha
| * | | | | Color with alpha constructorAaron Franke2020-04-291-1/+9
| |/ / / /
* | | | | Merge pull request #37293 from Janglee123/ctrl-click-improvementsRémi Verschelde2020-05-052-1/+23
|\ \ \ \ \ | |_|_|_|/ |/| | | | Improved go-to definition (Ctrl + Click)
| * | | | Improved go-to definition (Ctrl + Click)janglee2020-05-052-1/+23
| | | | | | | | | | | | | | | | | | | | Co-Authored-By: Bojidar Marinov <bojidar.marinov.bg@gmail.com>
* | | | | Merge pull request #37717 from qarmin/world_fixRémi Verschelde2020-05-043-15/+15
|\ \ \ \ \ | | | | | | | | | | | | Change non-existent World to World3D
| * | | | | Change non-existent World to World3Dqarmin2020-04-183-15/+15
| | | | | |
* | | | | | Merge pull request #32534 from Xrayez/fix-dict2inst-initRémi Verschelde2020-05-032-9/+5
|\ \ \ \ \ \ | | | | | | | | | | | | | | Make `dict2inst` to work with arbitrary `_init` parameters
| * | | | | | Make `dict2inst` to work with arbitrary `_init` parametersAndrii Doroshenko (Xrayez)2020-04-302-9/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | | | Merge pull request #38275 from DSteve595/indented-block-lineRémi Verschelde2020-05-031-1/+1
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Mark "Indented block expected" error after function declaration
| * | | | | | | Mention offending function name in "Indented block expected" errorSteven Schoen2020-05-021-1/+1
| | | | | | | |
* | | | | | | | Remove some C++11 polyfill defines that are no longer neededHugo Locurcio2020-05-031-10/+0
|/ / / / / / /
* | | | | | | Merge pull request #38105 from AndreaCatania/AndreaCatania-patch-2Fabio Alessandrelli2020-05-011-4/+4
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Removed noisy ERR check from Multiplayer API.
| * | | | | | | Removed noisy ERR check from Multiplayer API.Andrea Catania2020-04-221-4/+4
| | | | | | | |
* | | | | | | | tinyexr: Enable C++11 threaded loadingRémi Verschelde2020-04-301-0/+3
| |/ / / / / / |/| | | | | |
* | | | | | | Merge pull request #38328 from Nannaquin/masterIgnacio Roldán Etcheverry2020-04-302-2/+2
|\ \ \ \ \ \ \ | |_|_|_|/ / / |/| | | | | | Fix growMargin() not returning modified Rect2/Rect2i in Mono
| * | | | | | Fix growMargin() not returning modified Rect2/Rect2iNannaquin2020-04-292-2/+2
| | | | | | |
* | | | | | | Merge pull request #38288 from RandomShaper/imvu/fix_not_freed_gdsfuncstateRémi Verschelde2020-04-292-11/+25
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | Fix leaked objects when game ends with yields in progress
| * | | | | | Fix leaked objects when game ends with yields in progressPedro J. Estébanez2020-04-292-11/+25
| | | | | | |
* | | | | | | Merge pull request #38279 from BigRed-118/assert_mark_as_safe_regression_bugRémi Verschelde2020-04-291-9/+9
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Fix for marking assert lines as safe bug
| * | | | | | | Fix for marking assert lines as safe bugTom Evans2020-04-271-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | | | [Core] Rename linear_interpolate to lerpAaron Franke2020-04-2910-17/+17
| | | | | | | |
* | | | | | | | [Mono] Rename LinearInterpolate to LerpAaron Franke2020-04-295-24/+52
| |/ / / / / / |/| | | | | |
* | | | | | | Merge pull request #36960 from pycbouh/docs-improve-shortcutsRémi Verschelde2020-04-291-1/+5
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Improve shortcut formatting in docs
| * | | | | | | Improve shortcut formatting in docsYuri Sizov2020-04-101-1/+5
| | | | | | | |
* | | | | | | | Merge pull request #37314 from nekomatata/bullet-fix-dampingRémi Verschelde2020-04-284-22/+36
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Better damping implementation for Bullet rigid bodies
| * | | | | | | | Better damping implementation for Bullet rigid bodiesPouleyKetchoupp2020-04-274-22/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apply old method for linear & angular damping in Bullet, in order to make it easier to tweak and consistent with Godot Physics.
* | | | | | | | | Rename InputFilter back to InputRémi Verschelde2020-04-287-30/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It changed name as part of the DisplayServer and input refactoring in #37317, with the rationale that input no longer goes through the main loop, so the previous Input singleton now only does filtering. But the gains in consistency are quite limited in the renaming, and it breaks compatibility for all scripts and tutorials that access the Input singleton via the scripting language. A temporary option was suggested to keep the scripting singleton named `Input` even if its type is `InputFilter`, but that adds inconsistency and breaks C#. Fixes godotengine/godot-proposals#639. Fixes #37319. Fixes #37690.