Commit graph

29722 commits

Author SHA1 Message Date
Antoine Félix
f3626364fc Modify the scene only when color changed
Editor now changes a color in the inspector only when it is different
from the current one.

Solves fake unsaved changes in editor after using the ColorPicker.

Resolves: #40879
2020-08-03 19:46:44 +02: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
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
Rémi Verschelde
49be94ec39
Merge pull request #40875 from Xrayez/ci-show-tests-name
CI: Show `tests=yes` for builds which run tests
2020-07-30 14:50:39 +02:00
Marcel Admiraal
9be7b30f35 Ensure CSG parent's _make_dirty() is called when entering a tree. 2020-07-30 13:34:37 +01:00
Rémi Verschelde
829039d8b1
Merge pull request #40874 from Calinou/doc-editorinterface-get_editor_viewport
Improve the `EditorInterface.get_editor_viewport()` description
2020-07-30 14:29:09 +02:00
Rémi Verschelde
718db9b396
Merge pull request #40873 from Calinou/doc-thread-safe-apis
Link to Thread-safe APIs in the Thread class documentation
2020-07-30 13:27:24 +02:00
Andrii Doroshenko (Xrayez)
ceb338d672 CI: Show tests=yes for builds which run tests 2020-07-30 14:00:45 +03:00
Hugo Locurcio
60d40d8430 Improve the EditorInterface.get_editor_viewport() description
This closes https://github.com/godotengine/godot-docs/issues/1109.
2020-07-30 12:21:49 +02:00
Hugo Locurcio
f50a4b8a3b Link to Thread-safe APIs in the Thread class documentation
This closes https://github.com/godotengine/godot-docs/issues/2276.
2020-07-30 12:18:00 +02:00
Rémi Verschelde
35ff38b3d4
Merge pull request #40761 from naithar/feature/ios-safe_area
[iOS] Safe area reimplementation
2020-07-30 00:43:03 +02:00