George Marques
5f77f38573
Add runner for GDScript testing
...
This is meant for testing the GDScript implementation, not for testing
user scripts nor testing the engine using scripts.
Tests consists in a GDScript file and a .out file with the expected
output. The .out file format is: expected status (based on the enum
GDScriptTest::TestStatus) on the first line, followed by either an error
message or the resulting output. Warnings are added after the first
line, before the output (or compiler errors) if the parser pass without
any error.
The test script must have a function called `test()` which takes no
argument. Such function will be called by the test runner. The test
should not have any dependency unless it's part of the test too. Global
classes (using `class_name`) are registered before the runner starts, so
those should work if needed.
Use the command `godot --gdscript-generate-tests
godot-source/modules/gdscript/tests/scripts` to update the .out files
with the current output (make sure the output are the expected values
before committing).
The tests themselves are part of the doctest suite so those can be
executed with `godot --test`.
Co-authored-by: Andrii Doroshenko (Xrayez) <xrayez@gmail.com>
2021-04-08 09:34:59 -03:00
Rémi Verschelde
47aef8e8dc
Merge pull request #47441 from TwistedTwigleg/skeletonik_changes_and_bug_fixes_regressionfix2
...
Fix for SkeletonIK not working correctly with 0 interpolation and incorrectly rotating with animation
2021-04-07 16:25:30 +02:00
Rémi Verschelde
1075943cc5
Merge pull request #43900 from nathanfranke/fix-stream-peer-tcp-ambiguity
...
Improve Ambiguous StreamPeerTCP `set_no_delay` Documentation
2021-04-07 11:54:59 +02:00
Rémi Verschelde
e261c2dd9d
Merge pull request #46877 from W4RH4WK/always-dynamically-allocate-property-table
...
Always dynamically allocate PropertyTable
2021-04-07 11:25:38 +02:00
Rémi Verschelde
f96392a2b5
Merge pull request #47683 from akien-mga/sync-gamecontrollerdb
...
Sync controller mappings DB with SDL2 community repo
2021-04-06 22:53:01 +02:00
Rémi Verschelde
f83486b430
Sync controller mappings DB with SDL2 community repo
...
Synced with gabomdq/SDL_GameControllerDB@01dce71403 .
2021-04-06 22:39:35 +02:00
Rémi Verschelde
68b28c6cd4
Merge pull request #47678 from madmiraal/fix-47436.1
...
Check for empty ConcavePolygonShape2D before checking for intersection
2021-04-06 22:35:49 +02:00
Rémi Verschelde
7fa84d8bd3
Merge pull request #47675 from madmiraal/fix-47436
...
Check ConvexPolygonShape2D point count before calcuating moment of inertia
2021-04-06 22:35:01 +02:00
Rémi Verschelde
0d37116aee
Merge pull request #47674 from madmiraal/fix-47437
...
Check for the use of an empty shape in Bullet Kinematic collisions
2021-04-06 22:34:17 +02:00
Rémi Verschelde
0485a0d8b2
Merge pull request #47668 from madmiraal/fix-47438
...
Ensure ConvexPolygonShape3D support count variable is initialised
2021-04-06 22:30:07 +02:00
Marcel Admiraal
2abfc0518f
Check for empty ConcavePolygonShape2D before checking for intersection
2021-04-06 20:05:10 +01:00
Rémi Verschelde
17e0ad9d5b
Merge pull request #47666 from madmiraal/fix-46137
...
Ensure ConvexPolygonShape2D support count variable is initialised
2021-04-06 21:03:00 +02:00
Marcel Admiraal
25593a481a
Check ConvexPolygonShape2D point count before calcuating moment of inertia
2021-04-06 19:15:09 +01:00
Marcel Admiraal
ff9a6c4e39
Check for the use of an empty shape in Bullet Kinematic collisions
2021-04-06 18:40:13 +01:00
Marcel Admiraal
6544f8422f
Ensure ConvexPolygonShape3D support count variable is initialised
2021-04-06 16:46:15 +01:00
Marcel Admiraal
0d4d8925b7
Ensure ConvexPolygonShape support count variable is initialised
2021-04-06 16:18:49 +01:00
Rémi Verschelde
55faf1c874
Merge pull request #47651 from Calinou/export-improve-nonexistent-preset-errors
...
Improve error messages for missing export presets when using `--export`
2021-04-06 14:37:25 +02:00
Hugo Locurcio
09f38ea215
Improve error messages for missing export presets when using --export
...
- Display a specific error message if the project doesn't have an
`export_presets.cfg` file.
- Display a list of detected export presets if an invalid export
preset name is supplied.
2021-04-06 14:27:15 +02:00
Rémi Verschelde
2d16ccaaa1
Merge pull request #47654 from vnen/stdout-disable
...
Add flag to stop printing to stdout/stderr
2021-04-06 13:34:05 +02:00
Rémi Verschelde
64e8eee3c6
Merge pull request #47660 from Faless/js/4.x_webgl_fallback
...
[HTML5] Implement WebGL fallback.
2021-04-06 13:07:51 +02:00
Fabio Alessandrelli
34fd48f68d
[HTML5] Implement WebGL fallback.
...
According to project settings and when WebGL2 is not available.
This does nothing in current master, as we have no rendering yet!
2021-04-06 12:57:24 +02:00
George Marques
f8dd7917ec
Add flag to stop printing to stdout/stderr
...
This allows the terminal output to be suppressed but still be captured
by print/error handlers.
2021-04-06 07:36:41 -03:00
Rémi Verschelde
45f0b5db28
Merge pull request #47200 from LightningAA/delete-from-project-manager-4.0
...
Add the ability to remove project contents from the remove project dialog
2021-04-06 11:30:14 +02:00
Rémi Verschelde
12286a1fde
Merge pull request #47655 from BastiaanOlij/fix_reloadable
...
Only cleanup meta data if GDNative library is reloadable
2021-04-06 09:45:04 +02:00
Rémi Verschelde
c647e41e60
Merge pull request #47657 from LightningAA/graphedit-zoom-follow-mouse-4.0
...
Make `GraphEdit` scrollwheel zoom based on mouse position
2021-04-06 08:46:51 +02:00
Lightning_A
d514949755
Make scrollwheel zoom based on mouse position
2021-04-05 23:00:56 -06:00
Bastiaan Olij
81131bd844
Only cleanup meta data if GDNative library is reloadable and we're about to unload it
2021-04-06 11:55:15 +10:00
Rémi Verschelde
f4b82814f8
Merge pull request #47622 from pycbouh/editor-plugins-expose-scale
...
Expose editor scale to the plugin API
2021-04-05 19:00:45 +02:00
Yuri Sizov
ea31af68ba
Expose editor scale to the plugin API
2021-04-05 18:44:01 +03:00
Rémi Verschelde
3d84fa85b4
Update AUTHORS and DONORS list
...
New contributor added to AUTHORS:
@gongpha, @jmb462
Thanks to all contributors and donors for making Godot possible!
2021-04-05 17:35:11 +02:00
Rémi Verschelde
4296b135b7
i18n: Sync translations with Weblate
...
(cherry picked from commit 5cfdb86660
)
2021-04-05 16:30:22 +02:00
Juan Linietsky
6c6c05adb9
Merge pull request #47291 from BastiaanOlij/move_clustered
...
Move clustered renderer functionality
2021-04-05 10:23:14 -03:00
Rémi Verschelde
5b2c4ad91c
Merge pull request #47569 from vnen/gdscript-typed-return
...
GDScript: Properly validate return type
2021-04-05 15:16:43 +02:00
Bastiaan Olij
dad40fa2df
Move clustered renderer functionality
2021-04-05 23:11:38 +10:00
Rémi Verschelde
ccdcb29df1
Merge pull request #47645 from akien-mga/animatedsprite2d-no-frames
...
Re-allow playing AnimatedSprite2D without frames
2021-04-05 14:58:38 +02:00
Rémi Verschelde
9e8acb3897
Merge pull request #47640 from BastiaanOlij/fix_vulkan_format
...
Chose format from supported ones that we support
2021-04-05 14:55:32 +02:00
George Marques
35682d3079
GDScript: Properly validate return type
...
When the type cannot be validated at compile time, the runtime must do a
check to ensure type safety is kept, as the code might be assuming the
return type is correct in another place, leading to crashes if the
contract is broken.
2021-04-05 09:52:05 -03:00
Rémi Verschelde
77264e346b
Re-allow playing AnimatedSprite2D without frames
...
Fixes #47578 , partial revert of #47064 .
2021-04-05 14:42:21 +02:00
Bastiaan Olij
ceebe4b565
Chose format from supported ones that we support
2021-04-05 22:39:17 +10:00
Rémi Verschelde
b80b072c44
Merge pull request #47642 from akien-mga/clang-tidy-fixes
2021-04-05 14:34:31 +02:00
Rémi Verschelde
d83761ba80
Style: Apply clang-tidy's readability-braces-around-statements
2021-04-05 14:09:59 +02:00
Rémi Verschelde
9bbe51dc27
Style: Apply clang-tidy's modernize-use-nullptr
2021-04-05 14:05:07 +02:00
Rémi Verschelde
65a2888057
Style: Apply clang-tidy's modernize-use-default-member-init
2021-04-05 13:37:27 +02:00
Rémi Verschelde
0f0c0e5933
Style: Apply clang-tidy's modernize-use-bool-literals
2021-04-05 13:16:35 +02:00
Rémi Verschelde
33b8f1448e
Merge pull request #47592 from jmb462/fix-VisualScriptFunctionState-connect-to-null-signal-crash
...
Fix VisualScriptFunctionState connect to null object crash (Fix #47572 )
2021-04-05 12:15:58 +02:00
Rémi Verschelde
de3b3e1cda
Merge pull request #47633 from Calinou/editor-theme-scrollbar-add-background
...
Add a subtle background to editor scrollbars
2021-04-05 12:05:07 +02:00
Rémi Verschelde
460bef1dab
Merge pull request #47597 from Faless/js/4.x_fetch_no_clen
...
[HTML5] Disable body_size in fetch.
2021-04-05 11:59:28 +02:00
Rémi Verschelde
e0b24467f7
Merge pull request #47627 from Blackiris/fix-gdscript-var-address
...
Fix GDScript variables addresses getting mixed
2021-04-05 11:55:47 +02:00
Rémi Verschelde
aea30827eb
Merge pull request #47638 from RoniPerson/patch-1
...
Added missing `:` in gdscript example for `TileMap` class reference.
2021-04-05 11:54:59 +02:00
Rémi Verschelde
77dc4c3cb6
Merge pull request #47636 from qarmin/input
...
Fix crashes in *_input functions
2021-04-05 11:54:08 +02:00