Commit graph

29730 commits

Author SHA1 Message Date
Somnath Sarkar
d5d832417e Sort points in a Gradient for color and offset updates. 2020-08-12 01:55:41 -04:00
George Marques
241e709462
Merge pull request #41062 from ThakeeNathees/unsafe-arithmatic-assignment-bug-fix
GDScript: unsafe arithmetic assignment bug fix
2020-08-06 10:51:48 -03:00
Thakee Nathees
38c7d080e8 GDScript: unsafe arithmetic assignment bug fix
Fix: #41051
2020-08-06 11:12:26 +05:30
Andrea Catania
6831da630f
Merge pull request #40989 from madmiraal/fix-40739
Reload Bullet space override modifier even when RigidBody is inactive.
2020-08-05 13:54:25 +02:00
Andrea Catania
8de57bde13
Merge pull request #41040 from qarmin/fixes_leak_bulet
Fixes leak when creating bullet shape
2020-08-05 13:22:42 +02:00
Rafał Mikrut
ac1b2da96e Fixes leak when creating bullet shape 2020-08-05 10:04:04 +02:00
George Marques
ec678c5e94
Merge pull request #40992 from vnen/fix-input-call
Fix _input being mistakenly called twice on script
2020-08-04 09:17:01 -03:00
George Marques
9adf6d3441
Merge pull request #40690 from ThakeeNathees/arithmetic-assign-type-check-bug-fix
GDScript arithmetic assignment type check bug fix
2020-08-03 09:26:09 -03:00
George Marques
9048e72ae9
Merge pull request #40986 from Anutrix/grammer-fix
Fixed tiny grammar issues in error messages
2020-08-03 09:23:16 -03:00
George Marques
b8671b61fc
Fix _input being mistakenly called twice on script
Instead it calls both the script and the native method.
2020-08-03 08:40:08 -03:00
Marcel Admiraal
3a05ca9c2b Reload Bullet space override modifier even when RigidBody is inactive. 2020-08-03 11:39:16 +01:00
unknown
561af0c17d Fixed tiny grammar issues in error messages 2020-08-03 14:03:28 +05:30
Rémi Verschelde
ec9302cecc
Merge pull request #40927 from 27thLiz/dinput-id
DirectInput: Use correct joypad id
2020-08-01 10:13:15 +02:00
Rémi Verschelde
bc813fd061
Merge pull request #40930 from Xrayez/fix-leak-test-args
Fix memory leak in test args
2020-07-31 23:23:03 +02:00
Rémi Verschelde
5af5331474
Merge pull request #40929 from KoBeWi/starhack
Properly disambiguate unsaved scripts
2020-07-31 23:07:28 +02:00
Andrii Doroshenko (Xrayez)
db1259ac70 Fix memory leak in test args 2020-07-31 23:58:22 +03:00
Tomasz Chabora
3082def404 Properly disambiguate unsaved scripts 2020-07-31 22:43:40 +02:00
Rémi Verschelde
be435608b0
Merge pull request #40922 from opl-/fix/x11-size-hints
Fix losing X11 window normal size hint properties
2020-07-31 21:42:50 +02:00
Rémi Verschelde
29df1919e1
Merge pull request #40928 from bruvzg/fix_test_heap_use_after_free
Fix heap use after free in the doctest "main".
2020-07-31 21:21:18 +02:00
Rémi Verschelde
92d39d1bd3
Merge pull request #40850 from Calinou/test-add-color
Add a test suite for Color
2020-07-31 21:19:52 +02:00
Hugo Locurcio
979072b9a4
Add a test suite for Color 2020-07-31 21:04:16 +02:00
bruvzg
0a89498f51
Fix heap use after free in the doctest "main". 2020-07-31 21:52:48 +03:00
Andreas Haas
802a0316c5
DirectInput: use correct joypad id
Previously `joypad_count` was used as the index into the d_joypads array when initializing a new gamepad.
This caused the accidental override of an already connected device when a gamepad with a lower id was disconnected and connected again.

fixes #17566
2020-07-31 20:16:51 +02:00
Rémi Verschelde
970ce06b34
Merge pull request #40923 from opl-/fix/update-window-size
Fix window max_size acting as min_size
2020-07-31 19:16:42 +02:00
opl-
48d55e46d0 Fix window max_size acting as min_size 2020-07-31 17:38:34 +02:00
opl-
a31b164071 Fix losing X11 window normal size hint properties
This was caused by `XSetWMNormalHints` being called multiple times, each time with different values. Calling the method replaces the old data completely, resulting in some of the settings being lost.

Since the method was called 3 times before the window was mapped, this resulted in the position hint being lost and the window always getting opened at a position determined by the WM.
2020-07-31 17:32:46 +02:00
Rémi Verschelde
5d880bf7db
Merge pull request #40613 from HaSa1002/multi-lang-docs
Add multiple programming language support to class reference
2020-07-31 14:51:33 +02:00
Rémi Verschelde
6d4d8349b6
Merge pull request #40915 from akien-mga/ci-pin-emscripten
CI: Pin Emscripten version for reproducible builds
2020-07-31 14:34:25 +02:00
Rémi Verschelde
bfd5226a8d CI: Pin Emscripten version for reproducible builds
Emscripten is a fast-moving target which gets tons of improvements all the time,
but it's not rare that some regressions affect us and make our CI builds fail.
(See e.g. #33728, #35237, #39168, #40563, and #40914.)

Let's pin to a stable version to avoid having external factors impact our CI,
and update this version manually regularly in a PR to ensure that the new
version works well for us.
2020-07-31 14:19:40 +02:00
Rémi Verschelde
4fb0ae3e9f
Merge pull request #40913 from godotengine/localv
Fixes issue with LocalVector remove function
2020-07-31 14:03:59 +02:00
Andrea Catania
9fb587b702
Fixes issue with LocalVector remove function 2020-07-31 13:49:15 +02:00
Rémi Verschelde
8b28553de8
Merge pull request #40816 from codetorex/master
Added missing information about File.open_encrypted function to docs
2020-07-31 13:07:42 +02:00
Rémi Verschelde
b1efa0f07f
Merge pull request #40418 from Calinou/doc-button-code-example
Add an example for creating a button in the Button class documentation
2020-07-31 13:05:48 +02:00
Rémi Verschelde
932a719f6e
Merge pull request #40540 from TheDuriel/patch-2
Clarify TreeItem return values
2020-07-31 13:04:13 +02:00
Rémi Verschelde
1cee89467b
Merge pull request #40591 from madmiraal/fix-24526
Update Linux gamepad detection to match SDL.
2020-07-31 13:02:35 +02:00
codetorex
3f6a7c74e3 Added missing information about File.open_encrypted function to docs. 2020-07-31 12:57:44 +02:00
Rémi Verschelde
13d785241c
Merge pull request #40835 from Xrayez/tests-port-astar
Port AStar tests to use doctest
2020-07-31 12:56:31 +02:00
Rémi Verschelde
ba853f86af
Merge pull request #40903 from Calinou/doc-json
Improve JSON-related documentation
2020-07-31 10:39:56 +02:00
Yuri Roubinsky
cb8efc4be3
Merge pull request #40904 from Chaosus/vs_fix_bug
Fix incorrect colors for member variables and numbers in visual shaders
2020-07-31 11:23:46 +03:00
Yuri Roubinsky
0594da324c Fix incorrect colors for member variables and numbers in visual shaders 2020-07-31 11:06:48 +03:00
Hugo Locurcio
930e10ffff Improve JSON-related documentation
This closes https://github.com/godotengine/godot-docs/issues/3848.
2020-07-31 09:56:11 +02:00
Yuri Roubinsky
c4da3b0248
Merge pull request #40902 from Chaosus/vs_fix_bug
Fix small reconnection bug in visual shader
2020-07-31 10:51:55 +03:00
Yuri Roubinsky
4d52456613 Fix small reconnection bug in visual shader 2020-07-31 10:40:05 +03:00
Andrii Doroshenko (Xrayez)
3645317036 Port AStar tests to use doctest 2020-07-31 02:09:40 +03:00
Rémi Verschelde
bb6adf4ef9
Merge pull request #40872 from Calinou/makerst-generate-abbreviations
makerst: Add descriptions to method qualifiers
2020-07-30 22:46:01 +02:00
Hugo Locurcio
c162a39c7b
makerst: Add descriptions to method qualifiers
This closes https://github.com/godotengine/godot-docs/issues/1753.
2020-07-30 22:11:02 +02:00
Rémi Verschelde
7488b07220
Merge pull request #40883 from Xrayez/tests-macros
Hide implementation details of doctest macros
2020-07-30 18:15:06 +02:00
Rémi Verschelde
9833f9cc11 doc: Fix typo in BBcode tag 2020-07-30 16:24:37 +02:00
Andrii Doroshenko (Xrayez)
0512cc01d9 Hide implementation details of doctest macros
`test_macros.h` is created to provide various macros acting as aliases for
doctest macros to work better with Godot internals and conventions. This also
makes it accessible for those who'd like to start writing tests in Godot, as
most vital information can be put together and documented directly in
`test_macros.h` header.

Developers are encouraged to include the new `tests/test_macros.h` for writing
new tests over `thirdparty/doctest/doctest.h`.

Added `TEST_CASE_PENDING("name")` as an alias for
`TEST_CASE("name", doctest::skip())` which could be used to mark failing tests
for issues yet to be fixed, so as to not affect CI testing results.

Added `ERR_PRINT_OFF` and `ERR_PRINT_ON` to control error printing for testing
various **expected** failure paths within Godot without polluting the test
summary with error messages.
2020-07-30 16:58:12 +03:00
Rémi Verschelde
b64bdf2c3e
Merge pull request #40880 from madmiraal/fix-csg-make_dirty
Ensure CSG parent's _make_dirty() is called when entering a tree.
2020-07-30 15:19:42 +02:00