Commit Graph

19340 Commits

Author SHA1 Message Date
Rémi Verschelde
1a36141481
Merge pull request #26048 from akien-mga/free-switch-for-everyone
GDScript: Remove unused `switch`, `case` and `do` CF keywords
2019-02-20 15:26:46 +01:00
Rémi Verschelde
6709ff6a96
Merge pull request #26049 from vixelz/textureprogress-nineslice-fill-fix
Truncate first segment in TextureProgress 9slices
2019-02-20 15:23:31 +01:00
Daniel Rakos
6587024207 Fix RayShape collision jitter when used with a RigidBody
Scaling the depth was the wrong solution for the KinematicBody jitter
because it causes jitter with RigidBody. Instead scale the margin that
is ignored to allow KinematicBody to still pick up the ray shape in the
kinematic test when the shape is just at margin distance from another
one. This solution does not cause jitter with either KinematicBody or
RigidBody.
2019-02-20 15:06:08 +01:00
ianb96
39f537e481 Fix word wrap cutoff and tab wrapping issue 2019-02-20 08:52:33 -05:00
Rémi Verschelde
e7018e4017 ProjectSettings: fix category for per pixel transparency settings 2019-02-20 14:45:02 +01:00
Rémi Verschelde
d35003d92a GDScript: Remove unused switch, case and do CF keywords
They had been reserved for future implementation, but we now have the
`match` CF keyword which does the same and more.

According to @reduz `do` was even added by mistake when copying from
the shader language parser, it was never intended to add support for
`do`... `while` loops, as the syntax would be awkward in GDScript,
and the added sugar is not worth it.

Fixes #25787.
2019-02-20 14:05:08 +01:00
Rémi Verschelde
51c9ffaec0 Drop RtAudio driver on Windows
We've been defaulting to WASAPI since 3.0 and it's superior to RtAudio
in all aspects.

Obsoletes and closes #25503.

Also enable WINMIDI on MinGW, this had been missed initially.

Fix os_windows.cpp and crash_handler_windows.cpp which had weird
dependencies on RtAudio.h's includes (ugh).
2019-02-20 13:47:01 +01:00
Rémi Verschelde
310c755a0f
Merge pull request #25983 from JFonS/fix_23960
Fix update of canvas AABB with update_when_visible
2019-02-20 13:43:14 +01:00
Rémi Verschelde
75c89aaaef
Merge pull request #26069 from hpvb/align-variant
Align the Variant data member
2019-02-20 13:27:05 +01:00
Rémi Verschelde
1f257d3f8c
Merge pull request #26085 from mrcdk/tileset_shape_rectangle
Added a create rectangle button to the tileset editor.
2019-02-20 13:26:51 +01:00
Rémi Verschelde
0399297e3e
Merge pull request #26084 from akien-mga/3d-viewport-fps-tooltip
Add tooltip for in-editor FPS display in 3D viewport
2019-02-20 13:26:34 +01:00
MrCdK
7827c2fd57 Added a create rectangle button to the tileset editor.
It makes easier to create collision shapes covering the full tile.
2019-02-20 12:27:53 +01:00
Rémi Verschelde
d1f68e2eaf Add tooltip for in-editor FPS display in 3D viewport
Also enhance Control/Label documentation about tooltips and mouse filter,
as it took me a while to understand why Labels didn't show tooltips.

Closes #26082.
2019-02-20 12:16:22 +01:00
Hein-Pieter van Braam
b6b113cc2b Align the Variant data member
This should avoid potential alignment issues when _mem holds real
values and speed up some floating point operations in some cases.
2019-02-20 11:14:22 +00:00
Rémi Verschelde
f41439c84b
Merge pull request #26073 from karliss/line-edit-home
Allow moving LineEdit visible window left by more than one symbol.
2019-02-20 10:56:13 +01:00
Rémi Verschelde
3c70a4a83a
Merge pull request #26080 from qarmin/fix_error_default_environment
Fix error when deleting default environment
2019-02-20 10:54:45 +01:00
Rémi Verschelde
5db6e371b3
Merge pull request #26043 from JosephCatrambone/master
Add some documentation for methods that return Copy-on-Write arrays.
2019-02-20 10:50:53 +01:00
Rémi Verschelde
7376cbdc94
Merge pull request #26072 from Faless/net/mbedtls_1.16
Update mbedtls to 2.16.0 (LTS release) + ubsan hack
2019-02-20 10:47:44 +01:00
qarmin
f6c59cf48d Fix error when deleting default environment 2019-02-20 10:40:41 +01:00
Rémi Verschelde
558c7d22fa
Merge pull request #26077 from Faless/net/http_read_until_eof_fixes
HTTPClient fixes for EOF read, chunked transfer encoding
2019-02-20 09:15:01 +01:00
Fabio Alessandrelli
0e5655694c Fix HTTPClient keep alive with chunked encoding.
We need to consume the trailer part and final CRLF after last chunk
as per RFC 7230 section 4.1:

```
chunked-body   = *chunk
                 last-chunk
                 trailer-part
                 CRLF
```

We do not return the trailer part, just consume it allowing following
requests to work as expected when using keep alive.
2019-02-20 05:13:51 +01:00
Joseph Catrambone
ec94370053 Add warnings to docs for methods that return copies, not refs. 2019-02-19 20:03:40 -08:00
Fabio Alessandrelli
10e4821260 HTTPClient read until EOF fixes 2019-02-20 03:06:02 +01:00
Fabio Alessandrelli
2b8b738391 Small hack to avoid runtime error when using ubsan
mbedtls_ssl_read cannot be called with a NULL buffer even if len is 0,
as those are passed to memcpy and compilers doesn't like that.
Always pass a single byte (still len 0 so nothing is actually copied)
2019-02-20 01:49:47 +01:00
Fabio Alessandrelli
a056e8dc77 Update mbedtls PR 1453 diff (UWP crypto fixes)
Also remove .orig file which should not have been committed in the first
place
2019-02-20 01:30:39 +01:00
Fabio Alessandrelli
2e495c73d6 Bump mbedTLS to version 2.16 (LTS version) 2019-02-20 01:30:32 +01:00
Ignacio Etcheverry
9f57939c12
Merge pull request #26071 from neikeq/issue-24953
C#: Add 'Singleton' property to singleton wrapper class
2019-02-20 00:12:33 +01:00
Kārlis Seņko
86374c0431 Allow moving LineEdit visible window left by more than one symbol. 2019-02-19 23:59:09 +02:00
Ignacio Etcheverry
9421da57ad C#: Add 'Singleton' property to singleton wrapper class
This property returns an instance of the singleton.
The purpose of this is to allow using methods from the base class like 'Connect'.
Since all Godot singletons inherit Object, the type of the returned instance is Godot.Object.
2019-02-19 22:38:22 +01:00
Ignacio Etcheverry
aa5b99821b
Merge pull request #26065 from neikeq/csharp-fix-gd-range
C#: Make GD.Range return IEnumerable instead of array
2019-02-19 19:27:37 +01:00
Ignacio Etcheverry
0826b79035 C#: Make GD.Range return IEnumerable instead of array
- Make NodePath and RID sealed classes.
- Renamed rand_range to RandRange.
2019-02-19 18:46:18 +01:00
qarmin
2f0c4de1f0 Fix res:// error when dragging file to other file 2019-02-19 17:21:05 +01:00
Rémi Verschelde
b1e480ac32
Merge pull request #26058 from akien-mga/travis-xenial-gcc-8
Travis: Use Ubuntu 16.04, use GCC 8 for Linux/GCC builds
2019-02-19 17:03:41 +01:00
Ignacio Etcheverry
1174d10e3c
Merge pull request #25890 from neikeq/issue-25818
Fix Godot.Reference marshalling from MonoObject* to Variant
2019-02-19 15:05:05 +01:00
Rémi Verschelde
2f9b7e6b63
Merge pull request #25788 from aqnuep/rayshape_fix
Fix RayShape collision when used with a KinematicBody (Bullet Physics)
2019-02-19 14:42:04 +01:00
Rémi Verschelde
5774155d6a Travis: Use Ubuntu 16.04, use GCC 8 for Linux/GCC builds
Also add one GCC 5 legacy build job for debug template.
2019-02-19 14:17:22 +01:00
Rémi Verschelde
b7c50d99af
Merge pull request #26052 from marcelofg55/mingw_cfix_win
Fix compiling with use_mingw flag on Windows
2019-02-19 14:14:51 +01:00
Marcelo Fernandez
0c5f87531d Fix compiling with use_mingw flag on Windows 2019-02-19 10:02:24 -03:00
Rémi Verschelde
c7ba1e210e
Merge pull request #26030 from marxin/travis-add-gcc-8
Add gcc-8 to Travis.
2019-02-19 12:03:17 +01:00
Daniel Rakos
f7511511b1 Fix RayShape collision when used with a KinematicBody (Bullet Physics)
- Added code handling non-compound collision to recover_from_penetration_ray()
  which is now needed due to the optimization avoiding the use of compound
  collisions when only a single collision shape is used.
- Removed arbitrary margin applied in the collision algorithm of RayShapes
  which causes jittered movement. For lack of a better replacement and for
  lack of any explanation on why it has been introduced, it's now using the
  shape's margin property instead which is small enough to not show visible
  jitter.
- Tried to get rid of inconsistent uses of the collision margin.
- Removed hack from GodotDeepPenetrationContactResultCallback::addContactPoint
  for RayShape collision as it's no longer needed as the collision algorithm
  of RayShapes correctly calculates the contact normal for a while now.

Fixes #25227.
2019-02-19 11:16:05 +01:00
marxin
8fbf69a4f4 Enable warnings=all and werror=yes for gcc-8 GCC builder. 2019-02-19 10:43:28 +01:00
marxin
6b76145694 Add gcc-8 to Travis. 2019-02-19 10:29:33 +01:00
Vixelz
559b8fd236 Truncate first segment in TextureProgress 9slices
Much in the way that TextureProgress was truncating the last segment
of the nine slice when the value wasn't close to the end, perform
similar work on the beginning segment. This fixes the beginning segment
always being drawn, sometimes in the incorrect location.
2019-02-19 08:28:32 +00:00
Rémi Verschelde
e9b854b78a
Merge pull request #26033 from karliss/project-import
Fix project opening while filter is applied.
2019-02-19 09:11:20 +01:00
Ignacio Etcheverry
29fd942dd6
Merge pull request #26039 from neikeq/throw_objectdisposedexception
C#: Throw ObjectDisposedException from disposed wrapper classes
2019-02-19 01:02:20 +01:00
Ignacio Etcheverry
e1f01bf2ac
Merge pull request #26038 from neikeq/csharp_rand_funcs
C#: Add random functions to GD class
2019-02-19 00:52:01 +01:00
Ignacio Etcheverry
efd5d4bcf9 C#: Throw ObjectDisposedException from disposed wrapper classes 2019-02-19 00:37:15 +01:00
Ignacio Etcheverry
ce67808818 C#: Add random functions to GD class 2019-02-19 00:35:19 +01:00
Kārlis Seņko
bb3429c1c5 Fix project opening while filter is applied.
Fixes #25268
2019-02-19 00:06:20 +02:00
Rémi Verschelde
146be33cde
Merge pull request #26027 from marxin/fix-werrors-with-all
Fix warnings seen with warnings=all and recent GCC 8.2.
2019-02-18 22:22:46 +01:00