summaryrefslogtreecommitdiffstats
path: root/core
Commit message (Collapse)AuthorAgeFilesLines
* Style: clang-format: Disable AllowShortIfStatementsOnASingleLineRémi Verschelde2020-05-1034-156/+269
| | | | | | | 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.
* Style: Add missing copyright headersRémi Verschelde2020-05-103-0/+90
|
* Merge pull request #37020 from aaronfranke/rangeRémi Verschelde2020-05-101-40/+96
|\ | | | | Allow using integer vectors for iteration and make range() use them
| * Allow Vector2/Vector3 iterators to have non-integer valuesAaron Franke2020-05-091-10/+10
| |
| * Allow using integer vectors for iteration and make range() use themAaron Franke2020-05-091-32/+88
| |
* | Renamed plane's d to distanceMarcus Elg2020-05-1011-47/+47
| |
* | Merge pull request #38481 from RandomShaper/improve_yieldRémi Verschelde2020-05-091-0/+3
|\ \ | |/ |/| Fix object leaks caused by unfulfilled yields
| * Fix object leaks caused by unfulfilled yieldsPedro J. Estébanez2020-05-051-0/+3
| | | | | | | | | | | | | | | | | | | | 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.
* | Re-add __XINPUT_DEVICE__hoontee2020-05-071-0/+3
| | | | | | | | Required for `JoypadWindows::probe_joypads`. Partially reverts 510e83498e768ffbec8177f18a50180de828b844. Fixes #38554.
* | Merge pull request #36379 from aaronfranke/color-constructorsRémi Verschelde2020-05-073-6/+18
|\ \ | | | | | | Add a Color constructor for Color with alpha
| * | Color with alpha constructorAaron Franke2020-04-293-6/+18
| | |
* | | Merge pull request #38536 from ThakeeNathees/trnasform-2-transform2d-convert-fixRémi Verschelde2020-05-071-0/+2
|\ \ \ | | | | | | | | Fix: can't convert Transform -> Transform2D
| * | | Fix: can't convert Transform -> Transform2DThakee Nathees2020-05-071-0/+2
| | | | | | | | | | | | | | | | Fix: #38528
* | | | Merge pull request #38522 from ThakeeNathees/printing-empty-string-fixRémi Verschelde2020-05-071-1/+1
|\ \ \ \ | | | | | | | | | | Fix: printing empty string does nothing in editor output pannel
| * | | | Fix: printing empty string does nothing in editor output pannelThakee Nathees2020-05-071-1/+1
| |/ / / | | | | | | | | | | | | Fix: #38490
* | | | Merge pull request #38393 from nekomatata/printerr-remote-debugger-4.0Rémi Verschelde2020-05-062-6/+38
|\ \ \ \ | | | | | | | | | | Format remote printerr properly in script debugger output
| * | | | Format remote printerr properly in script debugger outputPouleyKetchoupp2020-05-012-6/+38
| | | | |
* | | | | Merge pull request #38415 from madmiraal/fix-array-slicingRémi Verschelde2020-05-052-43/+32
|\ \ \ \ \ | | | | | | | | | | | | Fix array slicing.
| * | | | | Fix array slicing.Marcel Admiraal2020-05-022-43/+32
| |/ / / /
* | | | / [Windows] Add support for the WinTab API for pen input.bruvzg2020-05-052-1/+3
| |_|_|/ |/| | |
* | | | Check for empty vectors before trying to access a pointer to the firstMarcel Admiraal2020-05-041-1/+3
| |/ / |/| | | | | | | | element in Octree<T, use_pairs, AL>::cull_convex().
* | | Merge pull request #37937 from HaSa1002/fix-pckRémi Verschelde2020-05-041-23/+12
|\ \ \ | | | | | | | | Priorize Embedded PCKs on loading
| * | | Priorize Embedded PCKs on loadingHaSa10022020-05-041-23/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | If existing, embedded PCKs are loaded before the pcks the engine might find next to it. Fixes #37568
* | | | Merge pull request #38394 from reduz/implement-skewRémi Verschelde2020-05-032-0/+23
|\ \ \ \ | | | | | | | | | | Implement Skew in Node2D
| * | | | Implement Skew in Node2DJuan Linietsky2020-05-012-0/+23
| | |/ / | |/| | | | | | | | | | Skew is x-axis only, because it must be bidirectionally convertible to a 2x3 matrix, but you can subtract it to the rotation to get the effect on y-axis
* / | | Remove some C++11 polyfill defines that are no longer neededHugo Locurcio2020-05-032-19/+1
|/ / /
* | / Fixed false positives in the culling system.Kiri Jolly2020-04-296-12/+83
| |/ |/| | | | | | | | | | | | | This fixes numerous false positives coming out of the culling system. AABB checks are now a full separating-axis check against the frustum, with the points of the frustum being compared to the planes of the box just as the points of the box were being compared to the planes of the frustum. This fixes large objects behind the camera not being culled correctly. Some systems that used frustums that were (sometimes mistakenly?) unbounded on one or more side have been modified to be fully enclosed.
* | Merge pull request #38307 from Calinou/shell-open-res-user-warningRémi Verschelde2020-04-291-0/+5
|\ \ | | | | | | Warn when trying to open `res://` or `user://` with `OS.shell_open()`
| * | Warn when trying to open `res://` or `user://` with `OS.shell_open()`Hugo Locurcio2020-04-281-0/+5
| | | | | | | | | | | | | | | | | | | | | `OS.shell_open()` will pass on the path directly to the OS' shell handler (which can handle file paths or URLs). It can't handle Godot-specific paths, so these need to be converted with `ProjectSettings.globalize_path()` first.
* | | [Core] Rename linear_interpolate to lerpAaron Franke2020-04-2911-41/+30
| |/ |/|
* | Merge pull request #38034 from punto-/punto-/vibration_info_protectedRémi Verschelde2020-04-291-9/+9
|\ \ | | | | | | makes VibrationInfo protected
| * | Input: make VibrationInfo protected to allow implementors to use itpunto-2020-04-291-9/+9
| | |
* | | Merge pull request #37580 from aaronfranke/xformRémi Verschelde2020-04-291-26/+18
|\ \ \ | |/ / |/| | Print errors when passing an invalid type to xform
| * | Print errors when passing an invalid type to xformAaron Franke2020-04-281-26/+18
| |/
* | Merge pull request #38064 from aaronfranke/rotatedRémi Verschelde2020-04-282-11/+5
|\ \ | |/ |/| Improve the Vector2 rotated code
| * Improve the Vector2 rotated codeAaron Franke2020-04-212-11/+5
| |
* | Merge pull request #38295 from akien-mga/input-is-backRémi Verschelde2020-04-286-148/+148
|\ \ | | | | | | Rename InputFilter back to Input
| * | Rename InputFilter back to InputRémi Verschelde2020-04-286-148/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Input: Drop obsolete versions of SDL gamecontrollerdbRémi Verschelde2020-04-284-632/+1
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The 204 and 205 are the older, SDL 2.0.4 and 2.0.5 compatible mappings, but since all new mappings have only been added to the main gamecontrollerdb.txt which overrides the older entries, it doesn't make much sense for us to keep the old databases. We do not support the SDL2 half axes and inverted axes features from gamecontrollerdb.txt, but this only impacts the specific controllers which can use those features, the rest are parsed and used properly. As for godotcontrollerdb.txt, it doesn't make sense for us to maintain our own custom mappings instead of submitting them upstream. The only exception is the Javascript and UWP platforms for which no bindings are available upstream, so we keep those entries.
* / Add const to InputEventMouseButton::get_factorTobias Mansfield-Williams2020-04-252-2/+2
|/
* Add proper type to most public API uses of ArrayJuan Linietsky2020-04-212-17/+48
|
* Add ability to bind typed arrays to script APIJuan Linietsky2020-04-218-2/+367
| | | | | | | 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)
* Exposed RenderingDevice to script APIJuan Linietsky2020-04-2012-32/+49
| | | | | | | | | | | | | 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.
* Merge pull request #37982 from DrMoriarty/fix_square_resizeRémi Verschelde2020-04-201-0/+3
|\ | | | | Fix square image resize
| * Fix square image resizeVasiliy Makarov2020-04-181-0/+3
| | | | | | | | Fixes #37980
* | Fix handling of PROPERTY_USAGE_SUBGROUP in DocData and editorRémi Verschelde2020-04-201-0/+1
| | | | | | | | | | Subgroups were added in #37678 but not properly handled everywhere where PROPERTY_USAGE_GROUP is.
* | Merge pull request #38039 from akien-mga/docdata-skip-unexposedRémi Verschelde2020-04-201-4/+0
|\ \ | | | | | | DocData: Skip unexposed classes
| * | DocData: Skip unexposed classesRémi Verschelde2020-04-201-4/+0
| |/ | | | | | | Properly expose classes that we actually want accessible.
* / Revert "Made possible to specify where to dump the contents when loading a ↵Rémi Verschelde2020-04-206-52/+14
|/ | | | | | | | | ".pck" file" This reverts commit 3c261e0dfa19d9c661ad6ca908a3b8ccee050016. This was not so useful as is due to the way dependency paths are stored in scenes and resources.
* Made possible to specify where to dump the contents when loading a ".pck" fileMichael Alexsander2020-04-166-14/+52
|